Does vscode remote support double ssh?

前端 未结 2 753
青春惊慌失措
青春惊慌失措 2021-02-08 12:40

I have a gpu-server Server-A in office. The only way to access that server is through the office wired network. The office provides a proxy server Server-B. How I connect to the

相关标签:
2条回答
  • 2021-02-08 12:56

    Have you looked into setting up a tunnel in your ssh config to go to Server-A via Server-B?I believe vscode will respect the tunnels you setup in your .ssh/config file.

    0 讨论(0)
  • 2021-02-08 12:58

    After several days struggling, I have figure it out. As Marc said, vscode respects the tunnels I setup in my .ssh/config file. A sample can be like :

    Host server1
    HostName server1_ip
    PreferredAuthentications publickey
    IdentityFile your_key
    User you
    
    Host server2
    Hostname server2_ip
    IdentityFile your_key
    ProxyJump server1
    User you
    
    0 讨论(0)
提交回复
热议问题