Closed arunc1985 closed 2 years ago
Is it possible to use VSCode to do remote SSH where the destination IP & PORT are dynamic. I have a requirement to connect to remote serverB via serverA. When I login to serverA, I am redirected to serverB based on sshd_configs on serverA. when I do ssh via cmd line it goes fine to serverB. But VSCode is not able to do that. Any ideas?
Is this a duplicate of https://github.com/microsoft/vscode-remote-release/issues/6612 or a different issue?
@tanhakabir yes please we can track double-SSH in 1 issue: https://github.com/microsoft/vscode-remote-release/issues/6612
I have a requirement to connect to a remote server (serverY) via an intermediate server(serverX). From windows VScode, I shall connect to serverX and I must be re-directed to serverY. In the ssh/sshd_config file of serverX I have enabled a rule to ssh to certain port in serverY based on Username. Manually when I do SSH from command line it all works fine. But VSCode fails.
VSCode Version Details:
VSCode ~/.ssh/config
As you see in the config file below I am connecting to intermediate server (serverX) via PORT 30600
**Host vude
HostName X.X.X.X StrictHostKeyChecking no MACs hmac-sha2-512 User arunch3x Port 30600**
Also refer to the sshd_config file of serverX port 30600. As you see based on User login, I am directing to some PORT on serverY
Note :: The PORT shown in below config is dynamic, it could be anything.
### Match user arunch3x PasswordAuthentication yes AllowTCPForwarding yes ForceCommand ssh -vvv -o 'StrictHostKeyChecking=no' arunch3x@Y.Y.Y.Y -p Z ****
### Expectations: VSCode must do double SSH and load contents to server Y.Y.Y.Y port Z into Code editor.
### Errors: