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 )
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章