Closed Sahils23 closed 1 year ago
If you can get it to work with your ProxyCommand by running an ssh
command manually in a terminal, then you can probably get it to work with Remote-SSH. You might also be interested in the Remote Tunnels workflow which avoids having to set this up with SSH entirely https://code.visualstudio.com/docs/remote/tunnels
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
settingConnect Locally
It connects successfully
->
No response
Expected Behavior
I want to connect to my dev server which needs me to connect to SFO VPN. To login to my dev server I need to go through intermediate jumphost first. When I login to my dev sever locally I use command -->
tsh --proxy=sfopx01.<company_name>.com login --insecure && tsh --proxy=$sfogw1 ssh -t user@<jumphost-ip> ssh user@<target_dev-ip>
and this logs me in directly into my dev server.![Local_Terminal_Login](https://user-images.githubusercontent.com/84541550/230555486-ae522704-f091-48b8-aa35-4447f50ab85d.png)
Now I am trying to setup this with remote-ssh in vs code
Here is how my configuration files looks like -->
1) /home/test/.ssh/config
2) /etc/ssh/ssh_config
3) etc/ssh/sshd_config
Steps To Reproduce
No response
Remote-SSH Log
Remote-SSH Log
[12:17:00.133] Log Level: 2 [12:17:00.139] SSH Resolver called for "ssh-remote+my_dev_server", attempt 1 [12:17:00.140] "remote.SSH.useLocalServer": false [12:17:00.140] "remote.SSH.showLoginTerminal": true [12:17:00.140] "remote.SSH.remotePlatform": {} [12:17:00.140] "remote.SSH.path": undefined [12:17:00.140] "remote.SSH.configFile": undefined [12:17:00.140] "remote.SSH.useFlock": true [12:17:00.140] "remote.SSH.lockfilesInTmp": false [12:17:00.141] "remote.SSH.localServerDownload": auto [12:17:00.141] "remote.SSH.remoteServerListenOnSocket": false [12:17:00.141] "remote.SSH.showLoginTerminal": true [12:17:00.141] "remote.SSH.defaultExtensions": [] [12:17:00.141] "remote.SSH.loglevel": 2 [12:17:00.141] "remote.SSH.enableDynamicForwarding": true [12:17:00.141] "remote.SSH.enableRemoteCommand": true [12:17:00.141] "remote.SSH.serverPickPortsFromRange": {} [12:17:00.141] "remote.SSH.serverInstallPath": {} [12:17:00.144] VS Code version: 1.76.2 [12:17:00.144] Remote-SSH version: remote-ssh@0.98.0 [12:17:00.144] linux x64 [12:17:00.146] SSH Resolver called for host: my_dev_server [12:17:00.146] Setting up SSH remote "my_dev_server" [12:17:00.149] Using commit id "ee2b180d582a7f601fa6ecfdad8d9fd269ab1884" and quality "stable" for server [12:17:00.152] Install and start server if needed [12:17:01.904] PATH: /home/test/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin [12:17:01.905] Checking ssh with "ssh -V" [12:17:01.920] > OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020 [12:17:01.926] Running script with connection command: ssh -T -D 40957 -o ConnectTimeout=50 'my_dev_server' bash [12:17:10.108] > kex_exchange_identification: Connection closed by remote host [12:17:10.109] Got some output, clearing connection timeout [12:17:10.567] "install" terminal command done [12:17:10.568] Install terminal quit with output: kex_exchange_identification: Connection closed by remote host [12:17:10.568] Received install output: kex_exchange_identification: Connection closed by remote host [12:17:10.569] Failed to parse remote port from server output [12:17:10.571] Resolver error: Error: at m.Create (/home/test/.vscode/extensions/ms-vscode-remote.remote-ssh-0.98.0/out/extension.js:1:584388) at t.handleInstallOutput (/home/test/.vscode/extensions/ms-vscode-remote.remote-ssh-0.98.0/out/extension.js:1:582948) at t.tryInstall (/home/test/.vscode/extensions/ms-vscode-remote.remote-ssh-0.98.0/out/extension.js:1:681793) at async /home/test/.vscode/extensions/ms-vscode-remote.remote-ssh-0.98.0/out/extension.js:1:644041 at async t.withShowDetailsEvent (/home/test/.vscode/extensions/ms-vscode-remote.remote-ssh-0.98.0/out/extension.js:1:647359) at async t.resolve (/home/test/.vscode/extensions/ms-vscode-remote.remote-ssh-0.98.0/out/extension.js:1:645091) at async /home/test/.vscode/extensions/ms-vscode-remote.remote-ssh-0.98.0/out/extension.js:1:720839 [12:17:10.577] ------
Anything else?