linux/windows vscode直连跳板机服务器
1. 修改.ssh/config
Host jump
HostName jump_name
User user_name
Host target
HostName targetip
User user_name
ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe -W %h:%p jump(windows)
ProxyCommand ssh -W %h:%p jump(linux)
2. 获取本地设备密钥,然后添加到目标服务器~/.ssh/authorized_keys
cat bendi >> ~/.ssh/authorized_keys
3. 配置vscode config文件与1同样