Remote SSH Not Working but Visual Studio works

Having issues with Remote SSH everything works fine on Visual Studio Code. But I’m unable to get one host to work. This host works fine on Visual Studio. Here is the error message I’m in my 14-day trial period, so hoping this can be resolved and I can sigh up for pro.

Log Level: 2
[16:58:18.394] SSH Resolver called for "ssh-remote+7b, attempt 1
[16:58:18.394] “remote.SSH.useLocalServer”: false
[16:58:18.395] “remote.SSH.useExecServer”: true
[16:58:18.395] “remote.SSH.showLoginTerminal”: false
[16:58:18.395] “remote.SSH.remotePlatform”: {“192.168.1.13”:“linux”,“192.168.1.176”:“linux”,“192.168.1.54”:“linux”,“192.168.1.177”:“linux”,“192.168.1.10”:“linux”,“MacMini”:“linux”,“QNAP”:“linux”,“192.168.1.11”:“linux”}
[16:58:18.395] “remote.SSH.path”:
[16:58:18.395] “remote.SSH.configFile”:
[16:58:18.395] “remote.SSH.useFlock”: true
[16:58:18.395] “remote.SSH.lockfilesInTmp”: false
[16:58:18.395] “remote.SSH.localServerDownload”: auto
[16:58:18.395] “remote.SSH.remoteServerListenOnSocket”: false
[16:58:18.395] “remote.SSH.showLoginTerminal”: false
[16:58:18.395] “remote.SSH.defaultExtensions”:
[16:58:18.395] “remote.SSH.loglevel”: 2
[16:58:18.395] “remote.SSH.enableDynamicForwarding”: true
[16:58:18.395] “remote.SSH.enableRemoteCommand”: false
[16:58:18.395] “remote.SSH.serverPickPortsFromRange”: {}
[16:58:18.396] “remote.SSH.serverInstallPath”: {}
[16:58:18.396] “remote.SSH.permitPtyAllocation”: false
[16:58:18.396] "remote.SSH.preferredLocalPortRange: undefined
[16:58:18.396] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[16:58:18.401] VS Code version: 0.48.8
[16:58:18.401] Remote-SSH version: [email protected]
[16:58:18.402] win32 x64
[16:58:18.404] SSH Resolver called for host: Alan
[16:58:18.404] Setting up SSH remote “Alan”
[16:58:18.408] Using commit id “78” and quality “stable” for server
[16:58:18.410] Install and start server if needed
[16:58:20.617] Checking ssh with “c:\Users\kyrun\AppData\Local\Programs\cursor\resources\app\bin\ssh.exe -V”
[16:58:20.618] Got error from ssh: spawn c:\Users\kyrun\AppData\Local\Programs\cursor\resources\app\bin\ssh.exe ENOENT
[16:58:20.619] Checking ssh with “C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe -V”
[16:58:20.619] Got error from ssh: spawn C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe ENOENT
[16:58:20.619] Checking ssh with “C:\Program Files\Razer Chroma SDK\bin\ssh.exe -V”
[16:58:20.620] Got error from ssh: spawn C:\Program Files\Razer Chroma SDK\bin\ssh.exe ENOENT
[16:58:20.620] Checking ssh with “C:\Windows\system32\ssh.exe -V”
[16:58:20.620] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[16:58:20.620] Checking ssh with “C:\Windows\ssh.exe -V”
[16:58:20.621] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[16:58:20.621] Checking ssh with “C:\Windows\System32\Wbem\ssh.exe -V”
[16:58:20.621] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[16:58:20.621] Checking ssh with “C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V”
[16:58:20.622] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[16:58:20.622] Checking ssh with “C:\Windows\System32\OpenSSH\ssh.exe -V”
[16:58:20.683] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[16:58:20.688] Running script with connection command: “C:\Windows\System32\OpenSSH\ssh.exe” -T -D 64447 “Alan” bash
[16:58:20.689] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[16:58:21.093] > e[?9001he[?1004h
[16:58:21.093] Got some output, clearing connection timeout
[16:58:21.879] > 457ebbaebd74: running

e]0;C:\WINDOWS\System32\cmd.exea
[16:58:21.934] > bash: getconf: not found
bash: syntax error: unexpected word (expecting “)”)
[16:58:23.212] “install” terminal command done
[16:58:23.212] Install terminal quit with output: bash: syntax error: unexpected word (expecting “)”)
[16:58:23.212] Received install output: bash: syntax error: unexpected word (expecting “)”)
[16:58:23.212] Failed to parse remote port from server output
[16:58:23.213] Resolver error: Error:
at m.Create (c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:501230)
at t.handleInstallOutput (c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:498552)
at t.tryInstall (c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:623362)
at async c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:582834
at async t.withShowDetailsEvent (c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:586100)
at async k (c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:579721)
at async t.resolve (c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:583511)
at async c:\Users\kyrun.cursor\extensions\ms-vscode-remote.remote-ssh-0.113.1\out\extension.js:2:851172
[16:58:23.217] ------

[16:58:24.725] Opening exec server for ssh-remote+7b
[16:58:24.784] Initizing new exec server for ssh-remote+7b
[16:58:24.785] Using commit id “78” and quality “stable” for server
[16:58:24.788] Install and start server if needed
[16:58:24.871] getPlatformForHost was canceled
[16:58:24.871] Exec server for ssh-remote+7b failed: Error: Connecting was canceled
[16:58:24.871] Error opening exec server for ssh-remote+7b: Error: Connecting was canceled

I’m getting a similar error. Currently, I have the Pro Plan… but working with SSH is a pain. VSCode connects rapidly, but Cursor takes a day to “download/transfer”.

Anyone with a suggestion?

Could you try switching to the Anysphere Remote SSH plugin? The VSCode Remote SSH plugin is incompatible with Cursor.

I having the same issue trying to connect to from my MacBook to my ubuntu dev server

I am able to connect on my terminal, IntelliJ and Visual studio without any issues only Cursor having ssh connectivity problems.

I am using Remote - SSH Anysphere plugin
Is there any ETA when is this going to be fixed ? as I would never develop code on my local machine as is not really safe.

Can you please share the logs from the “Remote - SSH” window with the log level set to trace?