microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.62k stars 281 forks source link

[Remote-SSH Bug]: ssh ubuntu is ok in terminal but cannot connect the ubuntu in vscode #10332

Open sgsungeng opened 2 hours ago

sgsungeng commented 2 hours ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It doesn’t connect successfully (same error message)

->

the log show in follow, the command of "ssh ubuntu" in terminal is ok. but fail in vscode with mac os upgrade.

Expected Behavior

the connection established success

Steps To Reproduce

No response

Remote-SSH Log

[Remote-SSH Log](ssh: connect to host 192.168.18.5 port 22: No route to host)

``` [PASTE LOG HERE] ``` 23:28:42.896] Spawned 3794 [23:28:42.973] > local-server-3> Running ssh connection command: /usr/bin/ssh -v -T -D 50370 -o ConnectTimeout=15 -F /Users/sunsun/.ssh/config ubuntu bash [23:28:42.973] > local-server-3> Spawned ssh, pid=3795 [23:28:42.977] stderr> OpenSSH_9.8p1, LibreSSL 3.3.6 [23:28:42.978] stderr> ssh: connect to host 192.168.18.5 port 22: No route to host [23:28:42.979] > local-server-3> ssh child died, shutting down [23:28:42.981] Local server exit: 0 [23:28:42.981] Received install output: local-server-3> Running ssh connection command: /usr/bin/ssh -v -T -D 50370 -o ConnectTimeout=15 -F /Users/sunsun/.ssh/config ubuntu bash local-server-3> Spawned ssh, pid=3795 OpenSSH_9.8p1, LibreSSL 3.3.6 **ssh: connect to host 192.168.18.5 port 22: No route to host** local-server-3> ssh child died, shutting down [23:28:42.981] Exec server for ssh-remote+ubuntu failed: Error: No route to host [23:28:42.981] Error opening exec server for ssh-remote+ubuntu: Error: No route to host

Anything else?

No response

sgsungeng commented 2 hours ago

Hello friends, the problem is the permission of local network, When I give the visual studio code this permission, the remote ssh work well. Thanks.