jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
279 stars 38 forks source link

Open Remote SSH connection attempts in fail in VSCodium - Error resolving authority - Error: connect ETIMEDOUT #145

Open pajot opened 6 months ago

pajot commented 6 months ago

This worked last week, now connection attempts time out.

SSH connections to the same server using the same connection profile in PowerShell work just fine.

It times out whether or not OpenSSH is installed. If it is not installed, I get the "Couldn't get identities from OpenSSH agent" error.

When the error first appeared, we discovered that the ssh-agent service was not running, and we were getting errors like in the "Without SSH installed" example below. We set it to "Automatic" and started it and those errors went away, but the timeouts are still happening.

Open Remote SSH version 0.0.45 VSCodium 1.87.2 (User) Windows 11 OpenSSH for Windows 8.6p1

Without SSH installed:

[Info  - 09:41:59.232] Resolving ssh remote authority 'ssh-remote+host' (attemp #1)
[Error  - 09:41:59.289] Couldn't get identities from OpenSSH agent
Error: Failed to connect to agent
    at Socket.n (c:\Users\<user>\.vscode-oss\extensions\jeanp413.open-remote-ssh-0.0.45-universal\out\extension.js:1:127013)
    at Socket.emit (node:events:514:28)
    at Socket.emit (node:domain:489:12)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[Trace  - 09:41:59.289] Identity keys:
<key_path>
[Error  - 09:42:20.384] Error resolving authority
Error: connect ETIMEDOUT <ipaddr>:<port>
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)

With SSH installed (altered from previous example for demonstration purposes, I don't have the log handy)

[Info  - 09:41:59.232] Resolving ssh remote authority 'ssh-remote+host' (attemp #1)
[Trace  - 09:41:59.289] Identity keys:
<key_path>
[Error  - 09:42:20.384] Error resolving authority
Error: connect ETIMEDOUT <ipaddr>:<port>
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)

We have tried reinstalling everything - VSCodium, Open Remote SSH - and deleting the settings directories, nothing has helped.

Xeladaren commented 3 months ago

I have the same issue on VSCodium 1.89.1 and Open Remote - SSH v0.0.45.

have you success to fix it ?