VSCode通过跳板机远程连接服务器

  • vscode remote

    关于vscode 的远程连接参见《VS Code Remote Development》

  • 通过跳板机

    上述提到的方式是直接连接,如果需要使用跳板机,其他方面都一样,除了配置文件需要多加一行。参见:

    ProxyCommand "OpenSSH安装路径"\ssh.exe -q -W %h:%p "跳板机"
    

    which means run ssh in quiet mode (using -q) and in stdio forwarding(using -w) mode, redirect the connection through an intermediate host(跳板机)。

  • ProxyCommand

    参见《ssh命令之ProxyCommand选项》

  • References

  1. How to Access a Remote Server Using a Jump Host
  2. [OpenSSH/Cookbook/Proxies and Jump Hosts](OpenSSH/Cookbook/Proxies and Jump Hosts )

你可能感兴趣的:(VSCode,vscode,跳板机)