Problem with Remote SSH

Describe the Bug

After clicking the “Reinstall” button (following a persistent warning related to remote SSH in Cursor), the SSH connection fails with the error:
“Connection to Cursor server failed: Failed to install the Cursor Server. Please check the logs for more details.”
Clicking “Reinstall server” or “Reload window” does not help — the window simply reloads and the same error appears again.

Additional context:

No VPN or proxy is being used.

The Anysphere Remote SSH extension was previously used without issues.

There is sufficient disk space available on the server.

The latest versions of Cursor, Remote SSH, and all dependencies are installed.

The logs show a permission denied error, but the SSH key is correct and was working prior to the reinstall.

Attempts to reinstall the Remote - SSH extension, clear all caches and temporary files, and reinstall Cursor did not resolve the issue.

Steps to Reproduce

Use Cursor with SSH connection (via the Anysphere Remote SSH extension).

Receive a warning that something related to remote SSH needs to be reinstalled.

Ignore the warning for some time.

Eventually click “Reinstall”.

Attempt to reconnect via SSH.

Observe the error:
“Connection to Cursor server failed: Failed to install the Cursor Server. Please check the logs for more details.”

Click “Reinstall server” or “Reload window” — no effect.

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Additional Information

logs:

2025-07-23 10:51:54.472 [info] Resolving ssh remote authority ‘34.51.198.219’ (Unparsed ‘ssh-remote+7b22686f73744e616d65223a2233342e35312e3139382e323139227d’) (attempt #1)
2025-07-23 10:51:54.472 [info] SSH askpass server listening on port 60498
2025-07-23 10:51:54.472 [info] Using configured platform linux for remote host 34.51.198.219
2025-07-23 10:51:54.473 [info] Using askpass script: c:\Users\Даня.cursor\extensions\anysphere.remote-ssh-1.0.23\dist\scripts\launchSSHAskpass.bat with javascript file c:\Users\Даня.cursor\extensions\anysphere.remote-ssh-1.0.23\dist\scripts\sshAskClient.js. Askpass handle: 60498
2025-07-23 10:51:54.483 [info] Launching SSH server via shell with command: type “C:\Users\C182~1\AppData\Local\Temp\cursor_remote_install_95160.sh” | ssh -v -T -D 60499 34.51.198.219 bash --login -c bash
2025-07-23 10:51:54.484 [info] Started installation script. Waiting for it to finish…
2025-07-23 10:51:54.484 [info] Waiting for server to install via process(25192)…
2025-07-23 10:51:54.516 [info] (ssh_tunnel) stderr: OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

2025-07-23 10:51:54.517 [info] (ssh_tunnel) stderr: debug1: Reading configuration data C:\Users\\320\224\320\260\320\275\321\217/.ssh/config

2025-07-23 10:51:54.517 [info] (ssh_tunnel) stderr: debug1: C:\Users\\320\224\320\260\320\275\321\217/.ssh/config line 1: Applying options for 34.51.198.219

2025-07-23 10:51:54.520 [info] (ssh_tunnel) stderr: debug1: Connecting to 34.51.198.219 [34.51.198.219] port 22.

2025-07-23 10:51:54.535 [info] (ssh_tunnel) stderr: debug1: Connection established.

2025-07-23 10:51:54.536 [info] (ssh_tunnel) stderr: debug1: identity file C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private type -1

2025-07-23 10:51:54.536 [info] (ssh_tunnel) stderr: debug1: identity file C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private-cert type -1

2025-07-23 10:51:54.536 [info] (ssh_tunnel) stderr: debug1: Local version string SSH-2.0-OpenSSH_for_Windows_9.5

2025-07-23 10:51:54.556 [info] (ssh_tunnel) stderr: debug1: Remote protocol version 2.0, remote software version OpenSSH_9.6p1 Ubuntu-3ubuntu13.12

2025-07-23 10:51:54.556 [info] (ssh_tunnel) stderr: debug1: compat_banner: match: OpenSSH_9.6p1 Ubuntu-3ubuntu13.12 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 34.51.198.219:22 as ‘daninvestor’

2025-07-23 10:51:54.558 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen C:\Users\\320\224\320\260\320\275\321\217/.ssh/known_hosts2: No such file or directory

2025-07-23 10:51:54.558 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory

2025-07-23 10:51:54.558 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory

2025-07-23 10:51:54.559 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEXINIT sent

2025-07-23 10:51:54.573 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEXINIT received

2025-07-23 10:51:54.574 [info] (ssh_tunnel) stderr: debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519

2025-07-23 10:51:54.574 [info] (ssh_tunnel) stderr: debug1: kex: server->client cipher: chacha20-poly1305@openssh. com MAC: compression: none

2025-07-23 10:51:54.574 [info] (ssh_tunnel) stderr: debug1: kex: client->server cipher: chacha20-poly1305@openssh. com MAC: compression: none

2025-07-23 10:51:54.575 [info] (ssh_tunnel) stderr: debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

2025-07-23 10:51:54.593 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEX_ECDH_REPLY received

2025-07-23 10:51:54.593 [info] (ssh_tunnel) stderr: debug1: Server host key: ssh-ed25519 SHA256:HEvmI3GhGZwq9clCqbT0nQF0mEni8vrPX6MlKuVlPXs

2025-07-23 10:51:54.594 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen C:\Users\\320\224\320\260\320\275\321\217/.ssh/known_hosts2: No such file or directory

2025-07-23 10:51:54.594 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory

2025-07-23 10:51:54.595 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory

2025-07-23 10:51:54.595 [info] (ssh_tunnel) stderr: debug1: Host ‘34.51.198.219’ is known and matches the ED25519 host key.

2025-07-23 10:51:54.595 [info] (ssh_tunnel) stderr: debug1: Found key in C:\Users\\320\224\320\260\320\275\321\217/.ssh/known_hosts:19

2025-07-23 10:51:54.597 [info] (ssh_tunnel) stderr: debug1: ssh_packet_send2_wrapped: resetting send seqnr 3

2025-07-23 10:51:54.597 [info] (ssh_tunnel) stderr: debug1: rekey out after 134217728 blocks

2025-07-23 10:51:54.597 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_NEWKEYS sent

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: expecting SSH2_MSG_NEWKEYS

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: ssh_packet_read_poll2: resetting read seqnr 3

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_NEWKEYS received

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: rekey in after 134217728 blocks

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: get_agent_identities: ssh_get_authentication_socket: No such file or directory

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: Will attempt key: C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private explicit

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_EXT_INFO received

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh. com,sk-ecdsa-sha2-nistp256@openssh. com,rsa-sha2-512,rsa-sha2-256>

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: kex_ext_info_check_ver: [email protected]=<0>

2025-07-23 10:51:54.598 [info] (ssh_tunnel) stderr: debug1: kex_ext_info_check_ver: [email protected]=<0>

2025-07-23 10:51:54.666 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_SERVICE_ACCEPT received

2025-07-23 10:51:54.681 [info] (ssh_tunnel) stderr: debug1: Authentications that can continue: publickey

2025-07-23 10:51:54.681 [info] (ssh_tunnel) stderr: debug1: Next authentication method: publickey

2025-07-23 10:51:54.681 [info] (ssh_tunnel) stderr: debug1: Trying private key: C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private

2025-07-23 10:51:54.682 [info] (ssh_tunnel) stderr: debug1: read_passphrase: requested to askpass

2025-07-23 10:51:54.682 [info] (ssh_tunnel) stderr: CreateProcessW failed error:2

2025-07-23 10:51:54.682 [info] (ssh_tunnel) stderr: ssh_askpass: posix_spawnp: No such file or directory

2025-07-23 10:51:54.683 [info] (ssh_tunnel) stderr: debug1: No more authentication methods to try.

2025-07-23 10:51:54.683 [info] (ssh_tunnel) stderr: daninvestor@ 34.51.198.219: Permission denied (publickey).

2025-07-23 10:51:54.684 [info] (ssh_tunnel) stderr: ����⪠ ����� � ���������騩 �����.

2025-07-23 10:51:54.686 [info] (ssh_tunnel): exit: code=255 signal=null
2025-07-23 10:51:54.687 [error] Error installing server: Failed to install the Cursor Server. Please check the logs for more details.
2025-07-23 10:51:54.687 [info] Deleting local script C:\Users\C182~1\AppData\Local\Temp\cursor_remote_install_95160.sh
2025-07-23 10:51:54.688 [error] Error resolving SSH authority Failed to install the Cursor Server. Please check the logs for more details.
2025-07-23 11:04:03.156 [info] Resolving ssh remote authority ‘34.51.198.219’ (Unparsed ‘ssh-remote+7b22686f73744e616d65223a2233342e35312e3139382e323139227d’) (attempt #1)
2025-07-23 11:04:03.156 [info] SSH askpass server listening on port 60793
2025-07-23 11:04:03.156 [info] Using configured platform linux for remote host 34.51.198.219
2025-07-23 11:04:03.157 [info] Using askpass script: c:\Users\Даня.cursor\extensions\anysphere.remote-ssh-1.0.23\dist\scripts\launchSSHAskpass.bat with javascript file c:\Users\Даня.cursor\extensions\anysphere.remote-ssh-1.0.23\dist\scripts\sshAskClient.js. Askpass handle: 60793
2025-07-23 11:04:03.170 [info] Launching SSH server via shell with command: type “C:\Users\C182~1\AppData\Local\Temp\cursor_remote_install_76445.sh” | ssh -v -T -D 60794 34.51.198.219 bash --login -c bash
2025-07-23 11:04:03.170 [info] Started installation script. Waiting for it to finish…
2025-07-23 11:04:03.170 [info] Waiting for server to install via process(26916)…
2025-07-23 11:04:03.205 [info] (ssh_tunnel) stderr: OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

2025-07-23 11:04:03.206 [info] (ssh_tunnel) stderr: debug1: Reading configuration data C:\Users\\320\224\320\260\320\275\321\217/.ssh/config

2025-07-23 11:04:03.206 [info] (ssh_tunnel) stderr: debug1: C:\Users\\320\224\320\260\320\275\321\217/.ssh/config line 1: Applying options for 34.51.198.219

2025-07-23 11:04:03.209 [info] (ssh_tunnel) stderr: debug1: Connecting to 34.51.198.219 [34.51.198.219] port 22.

2025-07-23 11:04:03.225 [info] (ssh_tunnel) stderr: debug1: Connection established.

2025-07-23 11:04:03.226 [info] (ssh_tunnel) stderr: debug1: identity file C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private type -1

2025-07-23 11:04:03.226 [info] (ssh_tunnel) stderr: debug1: identity file C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private-cert type -1

2025-07-23 11:04:03.226 [info] (ssh_tunnel) stderr: debug1: Local version string SSH-2.0-OpenSSH_for_Windows_9.5

2025-07-23 11:04:03.246 [info] (ssh_tunnel) stderr: debug1: Remote protocol version 2.0, remote software version OpenSSH_9.6p1 Ubuntu-3ubuntu13.12

2025-07-23 11:04:03.247 [info] (ssh_tunnel) stderr: debug1: compat_banner: match: OpenSSH_9.6p1 Ubuntu-3ubuntu13.12 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 34.51.198.219:22 as ‘daninvestor’

2025-07-23 11:04:03.249 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen C:\Users\\320\224\320\260\320\275\321\217/.ssh/known_hosts2: No such file or directory

2025-07-23 11:04:03.249 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory

2025-07-23 11:04:03.249 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory

2025-07-23 11:04:03.249 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEXINIT sent

2025-07-23 11:04:03.265 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEXINIT received

2025-07-23 11:04:03.265 [info] (ssh_tunnel) stderr: debug1: kex: algorithm: curve25519-sha256

2025-07-23 11:04:03.265 [info] (ssh_tunnel) stderr: debug1: kex: host key algorithm: ssh-ed25519

2025-07-23 11:04:03.265 [info] (ssh_tunnel) stderr: debug1: kex: server->client cipher: chacha20-poly1305@openssh. com MAC: compression: none

2025-07-23 11:04:03.266 [info] (ssh_tunnel) stderr: debug1: kex: client->server cipher: chacha20-poly1305@openssh. com MAC: compression: none

2025-07-23 11:04:03.267 [info] (ssh_tunnel) stderr: debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

2025-07-23 11:04:03.324 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEX_ECDH_REPLY received

2025-07-23 11:04:03.324 [info] (ssh_tunnel) stderr: debug1: Server host key: ssh-ed25519 SHA256:HEvmI3GhGZwq9clCqbT0nQF0mEni8vrPX6MlKuVlPXs

2025-07-23 11:04:03.325 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen C:\Users\\320\224\320\260\320\275\321\217/.ssh/known_hosts2: No such file or directory

2025-07-23 11:04:03.326 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory

2025-07-23 11:04:03.326 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory

2025-07-23 11:04:03.326 [info] (ssh_tunnel) stderr: debug1: Host ‘34.51.198.219’ is known and matches the ED25519 host key.

2025-07-23 11:04:03.326 [info] (ssh_tunnel) stderr: debug1: Found key in C:\Users\\320\224\320\260\320\275\321\217/.ssh/known_hosts:19

2025-07-23 11:04:03.328 [info] (ssh_tunnel) stderr: debug1: ssh_packet_send2_wrapped: resetting send seqnr 3

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: rekey out after 134217728 blocks

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_NEWKEYS sent

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: expecting SSH2_MSG_NEWKEYS

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: ssh_packet_read_poll2: resetting read seqnr 3

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_NEWKEYS received

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: rekey in after 134217728 blocks

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: get_agent_identities: ssh_get_authentication_socket: No such file or directory

2025-07-23 11:04:03.329 [info] (ssh_tunnel) stderr: debug1: Will attempt key: C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private explicit

2025-07-23 11:04:03.330 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_EXT_INFO received

2025-07-23 11:04:03.330 [info] (ssh_tunnel) stderr: debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh. com,sk-ecdsa-sha2-nistp256@openssh. com,rsa-sha2-512,rsa-sha2-256>

2025-07-23 11:04:03.330 [info] (ssh_tunnel) stderr: debug1: kex_ext_info_check_ver: [email protected]=<0>

2025-07-23 11:04:03.330 [info] (ssh_tunnel) stderr: debug1: kex_ext_info_check_ver: [email protected]=<0>

2025-07-23 11:04:03.401 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_SERVICE_ACCEPT received

2025-07-23 11:04:03.416 [info] (ssh_tunnel) stderr: debug1: Authentications that can continue: publickey

2025-07-23 11:04:03.417 [info] (ssh_tunnel) stderr: debug1: Next authentication method: publickey
debug1: Trying private key: C:\Users\\320\224\320\260\320\275\321\217/.ssh/key_private

2025-07-23 11:04:03.417 [info] (ssh_tunnel) stderr: debug1: read_passphrase: requested to askpass

2025-07-23 11:04:03.418 [info] (ssh_tunnel) stderr: CreateProcessW failed error:2

2025-07-23 11:04:03.418 [info] (ssh_tunnel) stderr: ssh_askpass: posix_spawnp: No such file or directory

2025-07-23 11:04:03.418 [info] (ssh_tunnel) stderr: debug1: No more authentication methods to try.

2025-07-23 11:04:03.418 [info] (ssh_tunnel) stderr: daninvestor@ 34.51.198.219: Permission denied (publickey).

2025-07-23 11:04:03.419 [info] (ssh_tunnel) stderr: ����⪠ ����� � ���������騩 �����.

2025-07-23 11:04:03.422 [info] (ssh_tunnel): exit: code=255 signal=null
2025-07-23 11:04:03.423 [error] Error installing server: Failed to install the Cursor Server. Please check the logs for more details.
2025-07-23 11:04:03.423 [info] Deleting local script C:\Users\C182~1\AppData\Local\Temp\cursor_remote_install_76445.sh
2025-07-23 11:04:03.423 [error] Error resolving SSH authority Failed to install the Cursor Server. Please check the logs for more details.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi @Yernazar_S, thank you for this bug report. It looks like when non-latin characters are in your home directory, we are unable to prompt for the private key password. We are looking into it, but in the meantime, could you try removing the password from your private key, or rename your home directory to be latin characters?

I’ve encountered the same problem, but I’m pretty sure there’s no non-latin characters in my home directory.

In my case, the error log says:

[info] Started installation script. Waiting for it to finish...
2025-07-25 10:29:19.685 [info] Waiting for server to install via process(14244)...
2025-07-25 10:29:19.831 [info] (ssh_tunnel) stderr: '-v' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�����������

2025-07-25 10:29:19.844 [info] (ssh_tunnel): exit: code=255 signal=null
2025-07-25 10:29:19.845 [error] Error installing server: Failed to install the Cursor Server. Please check the logs for more details.

While my home dir is /home/hill, and I checked the .ssh folder too as there are no any non latin characters either.

@Hesperus, to confirm, do you also have a CreateProcessW error in your logs?

Another cause could be antivirus programs. We’ve had some reports of antivirus programs interfering with launching the SSH subprocesses. Could you check to see if it quarantined anything recently?

2025-08-05 21:50:37.952 [info] Resolving ssh remote authority ‘Zephyr-Gestion’ (Unparsed ‘ssh-remote+7b22686f73744e616d65223a225a65706879722d47657374696f6e227d’) (attempt #1)

2025-08-05 21:50:37.952 [info] SSH askpass server listening on port 51263

2025-08-05 21:50:37.952 [info] Using configured platform linux for remote host Zephyr-Gestion

2025-08-05 21:50:37.952 [info] Using askpass script: c:\Users\yannc\.cursor\extensions\anysphere.remote-ssh-1.0.23\dist\scripts\launchSSHAskpass.bat with javascript file c:\Users\yannc\.cursor\extensions\anysphere.remote-ssh-1.0.23\dist\scripts\sshAskClient.js. Askpass handle: 51263

2025-08-05 21:50:37.979 [info] Launching SSH server via shell with command: type “C:\Users\yannc\AppData\Local\Temp\cursor_remote_install_97153.sh” | C:\Tools\ssh.exe -v -T -F C:\Users\yannc\.ssh\config -D 51264 Zephyr-Gestion bash --login -c bash

2025-08-05 21:50:37.979 [info] Started installation script. Waiting for it to finish…

2025-08-05 21:50:37.980 [info] Waiting for server to install via process(36656)…

2025-08-05 21:50:38.112 [info] (ssh_tunnel) stderr: Le processus a tent� d’�crire sur un canal inexistant.

2025-08-05 21:50:38.119 [info] (ssh_tunnel): exit: code=3221225781 signal=null

2025-08-05 21:50:38.121 [error] Error installing server: Failed to install the Cursor Server. Please check the logs for more details.

2025-08-05 21:50:38.121 [info] Deleting local script C:\Users\yannc\AppData\Local\Temp\cursor_remote_install_97153.sh

2025-08-05 21:50:38.123 [error] Error resolving SSH authority Failed to install the Cursor Server. Please check the logs for more details.

hello same here, i bought a VPS on OVH and when i try to connect on with Cursor i get this error, works with VS

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.