Cannot Connect to My Server after reboot Cursor

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The agent seems stuck and when I try to restart the cursor, it always says connection failed, no matter how many times of restart. I copy the log and it shows like this:

[info] Resolving ssh remote authority ‘7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d’ (Unparsed ‘ssh-remote+7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d’) (attempt #1)
[info] SSH askpass server listening on port 53327
[debug] hostname: 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d, remote platform map: {“gpuhome.comp.hkbu.edu.hk”:“linux”,“ssh -p 32401 [email protected]”:“linux”,“7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d”:“linux”}
[info] Using configured platform linux for remote host 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d
[debug] hostname: 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d, remote server install map: {}
[debug] hostname: 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d, server port range map: {}
[info] Using askpass script: c:\Users\csdhyu.cursor\extensions\anysphere.remote-ssh-1.1.4\dist\scripts\launchSSHAskpass.bat with javascript file c:\Users\csdhyu.cursor\extensions\anysphere.remote-ssh-1.1.4\dist\scripts\sshAskClient.js. Askpass handle: 53327
[info] Launching SSH server via shell with command: type “C:\Users\csdhyu\AppData\Local\Temp\cursor_remote_install_bfcb24fb-939d-47de-9ebd-2669cf2eb73c.sh” | ssh -T -D 53328 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d bash --login -c bash
[info] Establishing SSH connection: type “C:\Users\csdhyu\AppData\Local\Temp\cursor_remote_install_bfcb24fb-939d-47de-9ebd-2669cf2eb73c.sh” | ssh -T -D 53328 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e7365657461636c6f75642e636f6d227d bash --login -c bash
[info] Started installation script. Waiting for it to finish…
[info] Waiting for SSH handshake (timeout: 120s). Install timeout: 30s.
[info] (ssh_tunnel) stderr: ssh: Could not resolve hostname 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e736565746163: ???

[info] (ssh_tunnel) stderr: The process tried to write to a nonexistent pipe.

[error] SSH process exited (code 255) before connection was established (after 33ms)
[error] Pre-connection stderr: ssh: Could not resolve hostname 7b22686f73744e616d65223a22737368202d7020333234303120726f6f7440636f6e6e6563742e626a62322e736565746163: ???
The process tried to write to a nonexistent pipe.

[error] Error installing server: [o [RemoteSSHError]: Failed to connect to the remote SSH host. Please check the logs for more details.
at t.installCodeServer (c:\Users\csdhyu.cursor\extensions\anysphere.remote-ssh-1.1.4\dist\main.js:4:212312)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async c:\Users\csdhyu.cursor\extensions\anysphere.remote-ssh-1.1.4\dist\main.js:4:513868] {
disconnectReason: ‘preconnect_failed’
}
[info] Deleting local script C:\Users\csdhyu\AppData\Local\Temp\cursor_remote_install_bfcb24fb-939d-47de-9ebd-2669cf2eb73c.sh
[error] Error resolving SSH authority [o [RemoteSSHError]: Failed to connect to the remote SSH host. Please check the logs for more details.
at t.installCodeServer (c:\Users\csdhyu.cursor\extensions\anysphere.remote-ssh-1.1.4\dist\main.js:4:212312)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async c:\Users\csdhyu.cursor\extensions\anysphere.remote-ssh-1.1.4\dist\main.js:4:513868] {
disconnectReason: ‘preconnect_failed’
}

What the heck? I did not do anything I just restart the cursor and it seems like it somehow paste whatever strange strings into my log in command. This is countless time that it happened. The last time it happened I re-install the anywhere remote ssh and downgrade the version. This time it dose not work. I really need to complain about the stablity of your software sucks terrible.

Steps to Reproduce

Just restart the cursor and click my history log in command.

Expected Behavior

It should enter my server and show all the files.

Operating System

Windows 10/11

Version Information

Version: 3.9.16 (user setup)
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @Yudhpt!

This looks a lot like the issue reported over here:

If you connect to the host “fresh” (using Cmd + Shift + P > Remote-SSH: Connect to Host...) rather than a saved configuration, are you able to get past the error?