Problem with ssh connection

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After updating cursor again, I do have problem with SSH similar to my previous post

I get endless

2025-09-21 21:13:09.056 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:10.060 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:10.061 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:11.077 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:11.077 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:12.083 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:12.084 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:13.091 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:13.091 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:14.098 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:14.098 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:15.112 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:15.112 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:16.117 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:16.123 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:17.134 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:17.134 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:18.142 [info] (ssh_tunnel) stdout: Install in progress, sleeping for a bit...

2025-09-21 21:13:18.142 [info] (ssh_tunnel) stderr: ln: failed to create hard link '/tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633': File exists

2025-09-21 21:13:19.142 [info] (ssh_tunnel) stdout: 7489aa2cd3c607bb0d7f7c2a: start
exitCode==1==
nodeExecutable==/home/aka/.cursor-server/bin/5911e9593196a000b1c00553aaf03b0b32042b90/node==
multiplexListeningOn====
multiplexConnectionToken====
codeListeningOn====
errorMessage==Could not acquire lock after multiple attempts==
isFatalError====
codeConnectionToken====
detectedPlatform==linux==
arch==x64==
SSH_AUTH_SOCK====
7489aa2cd3c607bb0d7f7c2a: end

2025-09-21 21:13:19.152 [error] Error installing server: Cannot read properties of undefined (reading 'trim')
2025-09-21 21:13:19.152 [info] Deleting local script /var/folders/rq/xk915ht9641_zdj_jct5dfc40000gn/T/cursor_remote_install_5d60e26e-f93f-4912-908a-23e8dc13e939.sh
2025-09-21 21:13:19.154 [error] Error resolving SSH authority Cannot read properties of undefined (reading 'trim')

Steps to Reproduce

just try to connect to ssh

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.42 (Universal)
VSCode Version: 1.99.3
Commit: 5911e9593196a000b1c00553aaf03b0b32042b90
Date: 2025-09-20T17:16:56.346Z
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.5.0

Hi @naarkhoo, thank you for reporting this issue. Could you try upgrading to version 1.0.32 of the extension?

Upgrading to 1.0.32 for the ssh extension fixed my issue! I too was having this problem with the exact same error.

(post deleted by author)

Thank you! This also helped fix the issue for me :slight_smile:

same here

No - not really

[info] Resolving ssh remote authority 'rele' (Unparsed 'ssh-remote+7b22686f73744e616d65223a2272656c65737973227d') (attempt #1)
[info] SSH askpass server listening on /var/folders/rq/xk915ht9641_zdj_jct5dfc40000gn/T/cursor-ssh-RWxg1z/socket.sock
[debug] hostname: rele, remote platform map: {"sth@sth":"linux","daigeo":"linux","rele":"linux","0fa938d8-92c9-45e0-a2de-f6ba8fa06b5c-00-1mv4lx09ga1bg.janeway.replit.dev":"linux"}
[info] Using configured platform linux for remote host rele
[debug] hostname: rele, remote server install map: {}
[debug] hostname: rele, server port range map: {}
[info] Using askpass script: /Users/aza/.cursor/extensions/anysphere.remote-ssh-1.0.32/dist/scripts/launchSSHAskpass.sh with javascript file /Users/aza/.cursor/extensions/anysphere.remote-ssh-1.0.32/dist/scripts/sshAskClient.js. Askpass handle: /var/folders/rq/xk915ht9641_zdj_jct5dfc40000gn/T/cursor-ssh-RWxg1z/socket.sock
[info] Launching SSH server via shell with command: cat "/var/folders/rq/xk915ht9641_zdj_jct5dfc40000gn/T/cursor_remote_install_bfc0a020-5901-4530-988f-4ef50532643e.sh" | ssh -T -D 61294 rele bash --login -c bash
[info] Establishing SSH connection: cat "/var/folders/rq/xk915ht9641_zdj_jct5dfc40000gn/T/cursor_remote_install_bfc0a020-5901-4530-988f-4ef50532643e.sh" | ssh -T -D 61294 rele bash --login -c bash
[info] Started installation script. Waiting for it to finish...
[info] Waiting for server to install. Timeout: 30000ms
[info] (ssh_tunnel) stdout: Configuring Cursor Server on Remote
Using TMP_DIR: /tmp

[info] (ssh_tunnel) stdout: Killing all running Cursor servers

[info] (ssh_tunnel) stdout: Killing running code servers:   22497 /home/aka/.cursor-server/bin/823f58d4f60b795a6aefb9955933f3a2f0331d70/node /home/aka/.cursor-server/bin/823f58d4f60b795a6aefb9955933f3a2f0331d70/out/server-main.js --start-server --host=127.0.0.1 --port 0 --connection-token-file /tmp/cursor-remote-code.token.703380b44a664acb469ade33ace9f633 --telemetry-level off --enable-remote-auto-shutdown --accept-server-license-terms
Killing server process with PID: 22497
Killing all running multiplex servers

[info] (ssh_tunnel) stdout: Killing running multiplex servers:   22462 /home/aka/.cursor-server/bin/823f58d4f60b795a6aefb9955933f3a2f0331d70/node /home/aka/.cursor-server/bin/multiplex-server/3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8.js e35c36af-a234-4fa0-ae9d-c436a303e91e 0
Killing server process with PID: 22462
Removing all existing Cursor installations

[info] (ssh_tunnel) stdout: Deleting left behind cursor servers, except for /home/aka/.cursor-server/cursor-server-cb2f1cd2-7784-4183-a5a7-29a50b86f8c5.tar.gz

[info] (ssh_tunnel) stdout: Done deleting left behind cursor servers

[info] (ssh_tunnel) stdout: Locking /tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633

[info] (ssh_tunnel) stdout: Downloading server via wget from https://downloads.cursor.com/production/823f58d4f60b795a6aefb9955933f3a2f0331d7b/linux/x64/cursor-reh-linux-x64.tar.gz to cursor-server-3b50da1b-ddc0-4875-8fd6-cede26■■■944.tar.gz

[info] (ssh_tunnel) stderr: --2025-09-21 21:12:58--  https://downloads.cursor.com/production/823f58d4f60b795a6aefb9955933f3a2f0331d7b/linux/x64/cursor-reh-linux-x64.tar.gz
Resolving downloads.cursor.com (downloads.cursor.com)... 
[info] (ssh_tunnel) stderr: 104.18.17.128, 104.18.16.128, 2606:4700::6812:1180, ...
Connecting to downloads.cursor.com (downloads.cursor.com)|104.18.17.128|:443... connected.

[info] (ssh_tunnel) stderr: HTTP request sent, awaiting response... 
[info] (ssh_tunnel) stderr: 200 OK
Length: 65618109 (63M) [application/gzip]
Saving to: ‘cursor-server-3b50da1b-ddc0-4875-8fd6-cede26■■■944.tar.gz’


cursor-server-3b50d   0%[                    ]       0  --.-KB/s               
[info] (ssh_tunnel) stderr: 
cursor-server-3b50d  88%[================>   ]  55.46M   277MB/s               
[info] (ssh_tunnel) stderr: 
cursor-server-3b50d 100%[===================>]  62.58M   285MB/s    in 0.2s    


[info] (ssh_tunnel) stdout: Extracting server contents from cursor-server-3b50da1b-ddc0-4875-8fd6-cede26■■■944.tar.gz

[info] (ssh_tunnel) stderr: 2025-09-21 21:12:58 (285 MB/s) - ‘cursor-server-3b50da1b-ddc0-4875-8fd6-cede26■■■944.tar.gz’ saved [65618109/65618109]


[error] Error installing server: [Error: Failed to install server within the timeout
	at Timeout._onTimeout (/Users/aza/.cursor/extensions/anysphere.remote-ssh-1.0.32/dist/main.js:2:947401)
	at listOnTimeout (node:internal/timers:581:17)
	at process.processTimers (node:internal/timers:519:7)]
[info] Deleting local script /var/folders/rq/xk915ht9641_zdj_jct5dfc40000gn/T/cursor_remote_install_bfc0a020-5901-4530-988f-4ef50532643e.sh
[error] Error resolving SSH authority [Error: Failed to install server within the timeout
	at Timeout._onTimeout (/Users/aza/.cursor/extensions/anysphere.remote-ssh-1.0.32/dist/main.js:2:947401)
	at listOnTimeout (node:internal/timers:581:17)
	at process.processTimers (node:internal/timers:519:7)]
[info] (ssh_tunnel) stdout: Checking node executable

[info] (ssh_tunnel) stdout: v20.18.2

[info] (ssh_tunnel) stdout: Checking for running multiplex server: /home/aka/.cursor-server/bin/multiplex-server/3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8.js

[info] (ssh_tunnel) stdout: Running multiplex server: 

[info] (ssh_tunnel) stdout: Creating multiplex server token file /tmp/cursor-remote-multiplex.token.703380b44a664acb469ade33ace9f633.3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8

[info] (ssh_tunnel) stdout: Creating directory for multiplex server: /home/aka/.cursor-server/bin/multiplex-server

[info] (ssh_tunnel) stdout: Writing multiplex server script to /home/aka/.cursor-server/bin/multiplex-server/3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8.js

[info] (ssh_tunnel) stdout: Starting multiplex server: /home/aka/.cursor-server/bin/823f58d4f60b795a6aefb9955933f3a2f0331d70/node /home/aka/.cursor-server/bin/multiplex-server/3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8.js 434d3898-dcdb-4446-9a89-f8152b06fde0 0
Multiplex server started with PID 23021 and wrote pid to file /tmp/cursor-remote-multiplex.pid.703380b44a664acb469ade33ace9f633.3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8
Reading multiplex server token file /tmp/cursor-remote-multiplex.token.703380b44a664acb469ade33ace9f633.3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8
Multiplex server token file found

[info] (ssh_tunnel) stdout: Reading multiplex server log file /tmp/cursor-remote-multiplex.log.703380b44a664acb469ade33ace9f633.3ce73d09cffc8f33c6d911e972bd0f6dabbe3e26e810844be8060e6b10987db8

[info] (ssh_tunnel) stdout: Checking for code servers

[info] (ssh_tunnel) stdout: Code server script is not running
Creating code server token file /tmp/cursor-remote-code.token.703380b44a664acb469ade33ace9f633
Starting code server script /home/aka/.cursor-server/bin/823f58d4f60b795a6aefb9955933f3a2f0331d70/bin/cursor-server --start-server --host=127.0.0.1 --port 0  --connection-token-file /tmp/cursor-remote-code.token.703380b44a664acb469ade33ace9f633 --telemetry-level off --enable-remote-auto-shutdown --accept-server-license-terms &> /tmp/cursor-remote-code.log.703380b44a664acb469ade33ace9f633 &
Code server started with PID 23045 and wrote pid to file /tmp/cursor-remote-code.pid.703380b44a664acb469ade33ace9f633

[info] (ssh_tunnel) stdout: Code server log file is /tmp/cursor-remote-code.log.703380b44a664acb469ade33ace9f633

[info] (ssh_tunnel) stdout: e6bdafaa193af5cdf78e7147: start
exitCode==0==
nodeExecutable==/home/aka/.cursor-server/bin/823f58d4f60b795a6aefb9955933f3a2f0331d70/node==
errorMessage====
isFatalError==false==
multiplexListeningOn==42563==
multiplexConnectionToken==434d3898-dcdb-4446-9a89-f8152b06fde0==
codeListeningOn==41013==
codeConnectionToken==3843de39-f983-494d-9507-4ae67e5592f0==
detectedPlatform==linux==
arch==x64==
SSH_AUTH_SOCK====
e6bdafaa193af5cdf78e7147: end
Unlocking /tmp/cursor-remote-lock.703380b44a664acb469ade33ace9f633

[info] (ssh_tunnel) stdout:  
***********************************************************************
* This terminal is used to establish and maintain the SSH connection. *
* Closing this terminal will terminate the connection and disconnect  *
* Cursor from the remote server.                                      *
***********************************************************************


somehow started to work now !