Skip to content

"Connecting with SSH timed out" when creating workspace with SSH provider #1872

Open
@daxuyin

Description

@daxuyin

Dear DevPod engineers and developers,

I created a DevPod SSH Provider in a remote Ubuntu Linux platform (an Ubuntu 24.04.2 LTS vm on VMware Workstation), listening on default port 22.
When creating a workspace with DevPod GUI on my local Windows 11, with sample python workspace https://github.com/microsoft/vscode-remote-try-python and vs code as VS Code, a docker container was created successfully, VS Code started on Windows 11, however, I keep getting errors:

"Could not establish connection to "my0workspace-remote-ssh". Connecting with SSH timed out."

Also attached a screenshot here,

Image

The OUTPUT in VS Code shows the following message:

[01:43:45.398] Log Level: 2
[01:43:45.417] SSH Resolver called for "ssh-remote+my-workspace-remote-ssh.devpod", attempt 1
[01:43:45.419] remote.SSH.useLocalServer = false
[01:43:45.419] remote.SSH.useExecServer = true
[01:43:45.419] remote.SSH.bindHost = {}
[01:43:45.419] remote.SSH.showLoginTerminal = false
[01:43:45.419] remote.SSH.remotePlatform = {"192.168.5.128":"linux","vscode-remote-try-node.devpod":"linux","my-temp-project.devpod":"linux"}
[01:43:45.419] remote.SSH.path = undefined
[01:43:45.420] remote.SSH.configFile = undefined
[01:43:45.420] remote.SSH.useFlock = true
[01:43:45.420] remote.SSH.lockfilesInTmp = false
[01:43:45.420] remote.SSH.localServerDownload = auto
[01:43:45.420] remote.SSH.remoteServerListenOnSocket = false
[01:43:45.420] remote.SSH.defaultExtensions = []
[01:43:45.420] remote.SSH.defaultExtensionsIfInstalledLocally = []
[01:43:45.420] remote.SSH.loglevel = 2
[01:43:45.420] remote.SSH.enableDynamicForwarding = true
[01:43:45.420] remote.SSH.enableRemoteCommand = false
[01:43:45.421] remote.SSH.serverPickPortsFromRange = {}
[01:43:45.421] remote.SSH.serverInstallPath = {}
[01:43:45.421] remote.SSH.permitPtyAllocation = false
[01:43:45.423] remote.SSH.preferredLocalPortRange = undefined
[01:43:45.423] remote.SSH.useCurlAndWgetConfigurationFiles = false
[01:43:45.423] remote.SSH.experimental.chat = false
[01:43:45.423] remote.SSH.experimental.enhancedSessionLogs = false
[01:43:45.423] remote.SSH.httpProxy = {}
[01:43:45.423] remote.SSH.httpsProxy = {}
[01:43:45.431] VS Code version: 1.100.3
[01:43:45.431] Remote-SSH version: [email protected]
[01:43:45.431] win32 x64
[01:43:45.441] SSH Resolver called for host: my-workspace-remote-ssh.devpod
[01:43:45.441] Setting up SSH remote "my-workspace-remote-ssh.devpod"
[01:43:45.448] Using commit id "258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3" and quality "stable" for server
[01:43:45.448] Extensions to install:
[01:43:45.453] Install and start server if needed
[01:43:47.379] Checking ssh with "C:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe -V"
[01:43:47.381] Got error from ssh: spawn C:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe ENOENT
[01:43:47.381] Checking ssh with "C:\Program Files (x86)\Windows Resource Kits\Tools\ssh.exe -V"
[01:43:47.382] Got error from ssh: spawn C:\Program Files (x86)\Windows Resource Kits\Tools\ssh.exe ENOENT
[01:43:47.382] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[01:43:47.383] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[01:43:47.383] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[01:43:47.383] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[01:43:47.384] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[01:43:47.384] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[01:43:47.384] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[01:43:47.385] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[01:43:47.385] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[01:43:47.410] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[01:43:47.413] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 62929 "my-workspace-remote-ssh.devpod" sh
[01:43:47.415] Generated SSH command: 'type "C:\Users\daxu\AppData\Local\Temp\vscode-linux-multi-line-command-my-workspace-remote-ssh.devpod-544764250.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 62929 "my-workspace-remote-ssh.devpod" sh'
[01:43:47.415] Using connect timeout of 17 seconds
[01:43:47.416] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[01:44:04.428] Resolver error: Error: Connecting with SSH timed out
at y.Timeout (c:\Users\daxu.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:744895)
at Timeout._onTimeout (c:\Users\daxu.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:864215)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
[01:44:04.433] ------

[01:44:04.433] ---------- [Session Summary] -----------
[01:44:04.433] [Timeout]: Error: Timeout (Connecting with SSH timed out)
[01:44:04.433] ----------------------------------------
[01:44:04.765] Opening exec server for ssh-remote+my-workspace-remote-ssh.devpod
[01:44:04.780] Initizing new exec server for ssh-remote+my-workspace-remote-ssh.devpod
[01:44:04.781] Using commit id "258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3" and quality "stable" for server
[01:44:04.781] Extensions to install:
[01:44:04.784] Install and start server if needed
[01:44:07.723] > 01:44:07infoWaiting for devpod agent to come up...
[01:44:07.723] Got some output, clearing connection timeout
[01:44:30.750] > 01:44:30 info Waiting for devpod agent to come up...
[01:44:53.771] > 01:44:53 info Waiting for devpod agent to come up...
[01:45:16.789] > 01:45:16 info Waiting for devpod agent to come up...
[01:45:39.804] > 01:45:39 info Waiting for devpod agent to come up...
[01:45:46.831] getPlatformForHost was canceled
[01:45:46.831] Exec server for ssh-remote+my-workspace-remote-ssh.devpod failed: Error: Connecting was canceled
[01:45:46.832] Error opening exec server for ssh-remote+my-workspace-remote-ssh.devpod: Error: Connecting was canceled
[01:45:46.832] ---------- [Session Summary] -----------
[01:45:46.832] [Timeout]: Error: Timeout (Connecting with SSH timed out)
[01:45:46.832] ----------------------------------------


I also noticed a line in the above message "[01:43:45.419] remote.SSH.remotePlatform = {"192.168.5.128":"linux","vscode-remote-try-node.devpod":"linux","my-temp-project.devpod":"linux"}"

IP 192.168.5.128 is another remote SSH server I used to test and falied before.
Current DevPod SSH provider is configured with another remote ubuntu server with IP of 192.168.5.129.
I delete the SSH provider within the GUI as well as in PowerShell, and recreated the SSH provider with 192.168.5.129, however, somehow the 192.168.5.128 IP still shows in the VS Code OUTPUT message.

Could anyone kindly help me on the issue? Many thanks in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions