Remote SSH not working

I’m using the latest version of cursor with the remote ssh extension. When I remote-ssh, sometimes I can get in if I delete the .cursor-server directory on the server, but often when I try to reconnect, it’ll just hang at “initializing VS code server”. Here is the log output. I do notice a lot of ssh spawn errors.

[09:31:05.936] “remote.SSH.path”: undefined
[09:31:05.937] “remote.SSH.configFile”: C:\Users\alex.ssh\config
[09:31:05.937] “remote.SSH.useFlock”: true
[09:31:05.937] “remote.SSH.lockfilesInTmp”: false
[09:31:05.937] “remote.SSH.localServerDownload”: always
[09:31:05.937] “remote.SSH.remoteServerListenOnSocket”: false
[09:31:05.937] “remote.SSH.showLoginTerminal”: false
[09:31:05.937] “remote.SSH.defaultExtensions”:
[09:31:05.937] “remote.SSH.loglevel”: 2
[09:31:05.937] “remote.SSH.enableDynamicForwarding”: true
[09:31:05.937] “remote.SSH.enableRemoteCommand”: false
[09:31:05.938] “remote.SSH.serverPickPortsFromRange”: {}
[09:31:05.938] “remote.SSH.serverInstallPath”: {}
[09:31:05.942] SSH Resolver called for host: dvac-website
[09:31:05.942] Setting up SSH remote “dvac-website”
[09:31:05.967] Using commit id “bee043c1bb0095dab94043787985ccfc7cc38e50” and quality “stable” for server
[09:31:05.971] Install and start server if needed
[09:31:05.972] Checking ssh with “C:\Python310\Scripts\ssh.exe -V”
[09:31:06.011] Got error from ssh: spawn C:\Python310\Scripts\ssh.exe ENOENT
[09:31:06.011] Checking ssh with “C:\Python310\ssh.exe -V”
[09:31:06.012] Got error from ssh: spawn C:\Python310\ssh.exe ENOENT
[09:31:06.012] Checking ssh with “c:\Users\Alex\AppData\Local\Programs\cursor\resources\app\bin\ssh.exe -V”
[09:31:06.013] Got error from ssh: spawn c:\Users\Alex\AppData\Local\Programs\cursor\resources\app\bin\ssh.exe ENOENT
[09:31:06.013] Checking ssh with “C:\Python312\Scripts\ssh.exe -V”
[09:31:06.014] Got error from ssh: spawn C:\Python312\Scripts\ssh.exe ENOENT
[09:31:06.014] Checking ssh with “C:\Python312\ssh.exe -V”
[09:31:06.014] Got error from ssh: spawn C:\Python312\ssh.exe ENOENT
[09:31:06.015] Checking ssh with “C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler\ssh.exe -V”
[09:31:06.015] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler\ssh.exe ENOENT
[09:31:06.015] Checking ssh with “C:\Windows\system32\ssh.exe -V”
[09:31:06.016] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[09:31:06.016] Checking ssh with “C:\Windows\ssh.exe -V”
[09:31:06.017] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[09:31:06.017] Checking ssh with “C:\Windows\System32\Wbem\ssh.exe -V”
[09:31:06.018] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[09:31:06.018] Checking ssh with “C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V”
[09:31:06.019] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[09:31:06.019] Checking ssh with “C:\Windows\System32\OpenSSH\ssh.exe -V”
[09:31:06.106] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3

Seems to be a widely affected problem among users as I’ve seen many similar reports in the past. None of the solutions have worked so far.

2 Likes