Cursor SSH getting connect failed

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’m working on Cursor, and I need to connect to SSH in many repos, but I cannot connect to multiple repos at the same time, here is the

[info] Resolving ssh remote authority ‘development’ (Unparsed ‘ssh-remote+7b22686f73744e616d65223a22646576656c6f706d656e74227d’) (attempt #1)
[info] SSH askpass server listening on /var/folders/4r/wyvvxg1n2k1_908rd43ptcv80000gn/T/cursor-ssh-OtF0cw/socket.sock
[debug] hostname: development, remote platform map: {“development”:“linux”}
[info] Using configured platform linux for remote host development
[debug] hostname: development, remote server install map: {}
[info] Using askpass script: MyFolder.cursor/extensions/anysphere.remote-ssh-1.0.25/dist/scripts/launchSSHAskpass.sh with javascript file MyFolder/.cursor/extensions/anysphere.remote-ssh-1.0.25/dist/scripts/sshAskClient.js. Askpass handle: /var/folders/4r/wyvvxg1n2k1_908rd43ptcv80000gn/T/cursor-ssh-OtF0cw/socket.sock
[info] Launching SSH server via shell with command: cat “/var/folders/4r/wyvvxg1n2k1_908rd43ptcv80000gn/T/cursor_remote_install_25bdaaab-9b67-4ecd-b673-59567be84ed4.sh” | ssh -T -D 55202 development bash --login -c bash
[info] Establishing SSH connection: cat “/var/folders/4r/wyvvxg1n2k1_908rd43ptcv80000gn/T/cursor_remote_install_25bdaaab-9b67-4ecd-b673-59567be84ed4.sh” | ssh -T -D 55202 development bash --login -c bash
[info] Started installation script. Waiting for it to finish…
[info] Waiting for server to install…
[info] (ssh_tunnel) stdout: Configuring Cursor Server on Remote

[info] (ssh_tunnel) stdout: Using TMP_DIR: /run/user/1000

[info] (ssh_tunnel) stdout: Locking /run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit…

[info] (ssh_tunnel) stderr: ln: failed to create hard link ‘/run/user/1000/cursor-remote-lock.b5a4647be1e377176bc3368a461da66d’: File exists

[info] (ssh_tunnel) stdout: 2cf235d14298568694b67152: start
exitCode==1==
nodeExecutable==/home/ubuntu/.cursor-server/bin/af58d92614edb1f72bdd756615d131bf8dfa5290/node==
multiplexListeningOn====
multiplexConnectionToken====
codeListeningOn====
errorMessage==Could not acquire lock after multiple attempts==
isFatalError====
codeConnectionToken====
detectedPlatform==linux==
arch==x64==
SSH_AUTH_SOCK====
2cf235d14298568694b67152: end

[info] Server install command exit code: 1
[error] Error installing server: [Error: Couldn’t install Cursor Server, install script returned non-zero exit status: Could not acquire lock after multiple attempts
at t.installCodeServer (MyFolder/.cursor/extensions/anysphere.remote-ssh-1.0.25/dist/main.js:1:93808)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MyFolder/.cursor/extensions/anysphere.remote-ssh-1.0.25/dist/main.js:1:146441]
[info] Deleting local script /var/folders/4r/wyvvxg1n2k1_908rd43ptcv80000gn/T/cursor_remote_install_25bdaaab-9b67-4ecd-b673-59567be84ed4.sh
[error] Error resolving SSH authority [Error: Couldn’t install Cursor Server, install script returned non-zero exit status: Could not acquire lock after multiple attempts
at t.installCodeServer (MyFolder/.cursor/extensions/anysphere.remote-ssh-1.0.25/dist/main.js:1:93808)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MyFolder/.cursor/extensions/anysphere.remote-ssh-1.0.25/dist/main.js:1:146441]

Steps to Reproduce

Step 1: Connect to a Repo
Step 2: Connect to another repo in a new window at the same time

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (Universal)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z (6 days ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Thanks for reporting this.

Please try this:

Update to the latest version (current is 1.5.7) since your Cursor version 1.4.5 is older, then retest the connection.

Please let us know if this still happens after these steps.

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