Does vscode remote support double ssh?

前端 未结 2 747
青春惊慌失措
青春惊慌失措 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: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
    

提交回复
热议问题