(Need Help!)Connection to Cursor server failed: Failed to connect to Cursor code server

Describe the Bug

Connection to Cursor server failed: Failed to connect to Cursor code server. Ensure that your remote host ssh config has ‘AllowTcpForwarding yes’ in ‘/etc/ssh/sshd_config’. Please check the logs and try reinstalling the server.

Steps to Reproduce

I just use Anysphere Remote - SSH to connect my server, It can be connected at first, but will be disconnected after a few seconds, and When I Reload the windows, it will show this error. AllowTcpForwarding is set Yes.

The output log:

nodeExecutable==/home/rbl/.cursor-server/bin/a8e95743c5268be73767c46944a71f4465d05c90/node==
errorMessage====
isFatalError==false==
multiplexListeningOn==40123==
multiplexConnectionToken==4f7c61d7-f796-49f4-ae10-eb6efde14516==
codeListeningOn==46135==
codeConnectionToken==da6ceecf-f636-4fd9-a8dc-e0e0627c94ad==
detectedPlatform==linux==
arch==x64==
SSH_AUTH_SOCK====
f057ca21a2f57e071a7b5fbf: end

2025-07-19 02:09:18.670 [info] Server install command exit code:  0
2025-07-19 02:09:18.670 [info] Deleting local script C:\Users\17819\AppData\Local\Temp\cursor_remote_install_26807.sh
2025-07-19 02:09:18.671 [info] [forwarding][code] creating new forwarding server
2025-07-19 02:09:18.672 [info] [forwarding][code] server listening on 127.0.0.1:59469
2025-07-19 02:09:18.672 [info] [forwarding][code] Set up server
2025-07-19 02:09:18.672 [info] [remote-ssh] codeListeningOn (remote=[object Object]; local=[object Object]) codeConnectionToken: da6ceecf-f636-4fd9-a8dc-e0e0627c94ad
2025-07-19 02:09:18.672 [info] [forwarding][multiplex] creating new forwarding server
2025-07-19 02:09:18.674 [info] [forwarding][multiplex] server listening on 127.0.0.1:59470
2025-07-19 02:09:18.674 [info] [forwarding][multiplex] Set up server
2025-07-19 02:09:18.676 [info] [remote-ssh] multiplexListeningOn (remote=[object Object]; local=[object Object]) multiplexConnectionToken: 4f7c61d7-f796-49f4-ae10-eb6efde14516
2025-07-19 02:09:18.676 [info] [remote-ssh] Pinging remote server on port 127.0.0.1:59470
2025-07-19 02:09:18.681 [info] (ssh_tunnel) stdout: Unlocking /run/user/1003/cursor-remote-lock.9bba4c2ec0eaa2771128b92cc3d4aca2

2025-07-19 02:09:18.683 [info] [forwarding][multiplex][127.0.0.1:59470 -> 127.0.0.1:40123][9901e688-cfda-4506-a55f-78faa0e8fdc4] received connection request
2025-07-19 02:09:18.684 [info] [command][8e86de66-c466-4b51-a62c-457bd4b65fcd] Sending command request: {"command":"echo","args":["1"],"env":{},"token":"4f7c61d7-f796-49f4-ae10-eb6efde14516","id":"8e86de66-c466-4b51-a62c-457bd4b65fcd"}
2025-07-19 02:09:18.687 [info] (ssh_tunnel) stderr: debug1: Connection to port 59450 forwarding to socks port 0 requested.
debug1: channel 3: new dynamic-tcpip [dynamic-tcpip] (inactive timeout: 0)

2025-07-19 02:09:18.711 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:46135][7a6e6397-b0da-4964-921a-2a697190c974] received connection request
2025-07-19 02:09:18.715 [info] [forwarding][multiplex][127.0.0.1:59470 -> 127.0.0.1:59450 -> 127.0.0.1:40123][9901e688-cfda-4506-a55f-78faa0e8fdc4] socks forwarding established
2025-07-19 02:09:18.716 [info] (ssh_tunnel) stderr: debug1: Connection to port 59450 forwarding to socks port 0 requested.
debug1: channel 4: new dynamic-tcpip [dynamic-tcpip] (inactive timeout: 0)

2025-07-19 02:09:18.719 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][7a6e6397-b0da-4964-921a-2a697190c974] socks forwarding established
2025-07-19 02:09:18.727 [info] [command][8e86de66-c466-4b51-a62c-457bd4b65fcd] Process exited with code 0
2025-07-19 02:09:18.727 [info] [command][8e86de66-c466-4b51-a62c-457bd4b65fcd] Socket close event received
2025-07-19 02:09:18.728 [info] [forwarding][multiplex][127.0.0.1:59470 -> 127.0.0.1:59450 -> 127.0.0.1:40123][9901e688-cfda-4506-a55f-78faa0e8fdc4] socks connection closed
2025-07-19 02:09:18.732 [info] (ssh_tunnel) stderr: debug1: channel 3: free: direct-tcpip: listening port 59450 for 127.0.0.1 port 40123, connect from 127.0.0.1 port 59472 to 127.0.0.1 port 59450, nchannels 5

2025-07-19 02:09:18.742 [info] Successfully connected to Cursor server at http://127.0.0.1:59469/version
2025-07-19 02:09:18.742 [info] [execServer][spawn] command: echo, args: 1, options: {}
2025-07-19 02:09:18.743 [info] [command][286e36fa-4d81-461b-b3e1-e8ad45f08f78] Sending command request: {"command":"echo","args":["1"],"env":{},"token":"4f7c61d7-f796-49f4-ae10-eb6efde14516","id":"286e36fa-4d81-461b-b3e1-e8ad45f08f78"}
2025-07-19 02:09:18.743 [info] [forwarding][multiplex][127.0.0.1:59470 -> 127.0.0.1:40123][01f120c0-a249-4dc9-bcb4-f88b282edf79] received connection request
2025-07-19 02:09:18.744 [info] (ssh_tunnel) stderr: debug1: Connection to port 59450 forwarding to socks port 0 requested.

2025-07-19 02:09:18.744 [info] (ssh_tunnel) stderr: debug1: channel 3: new dynamic-tcpip [dynamic-tcpip] (inactive timeout: 0)

2025-07-19 02:09:18.747 [info] [forwarding][multiplex][127.0.0.1:59470 -> 127.0.0.1:59450 -> 127.0.0.1:40123][01f120c0-a249-4dc9-bcb4-f88b282edf79] socks forwarding established
2025-07-19 02:09:18.755 [info] [forwarding][multiplex][127.0.0.1:59470 -> 127.0.0.1:59450 -> 127.0.0.1:40123][01f120c0-a249-4dc9-bcb4-f88b282edf79] socks connection closed
2025-07-19 02:09:18.756 [info] [command][286e36fa-4d81-461b-b3e1-e8ad45f08f78] Process exited with code 0
2025-07-19 02:09:18.756 [info] Successfully ran 'echo 1' against the multiplex server
2025-07-19 02:09:18.756 [info] [remote-ssh] Resolved exec server. Socks port: 59450
2025-07-19 02:09:18.757 [info] [remote-ssh] Resolved authority: {"host":"127.0.0.1","port":59469,"connectionToken":"da6ceecf-f636-4fd9-a8dc-e0e0627c94ad","extensionHostEnv":{}}. Socks port: 59450
2025-07-19 02:09:18.758 [info] [command][286e36fa-4d81-461b-b3e1-e8ad45f08f78] Socket close event received
2025-07-19 02:09:18.759 [info] (ssh_tunnel) stderr: debug1: channel 3: free: direct-tcpip: listening port 59450 for 127.0.0.1 port 40123, connect from 127.0.0.1 port 59476 to 127.0.0.1 port 59450, nchannels 5

2025-07-19 02:09:18.789 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:46135][fd448326-a0fb-4ed4-9706-1de2900492ce] received connection request
2025-07-19 02:09:18.790 [info] (ssh_tunnel) stderr: debug1: Connection to port 59450 forwarding to socks port 0 requested.
debug1: channel 3: new dynamic-tcpip [dynamic-tcpip] (inactive timeout: 0)

2025-07-19 02:09:18.794 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][fd448326-a0fb-4ed4-9706-1de2900492ce] socks forwarding established
2025-07-19 02:09:18.813 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:46135][4dc36a1f-c07f-49d2-abb5-3787a579dc0e] received connection request
2025-07-19 02:09:18.814 [info] (ssh_tunnel) stderr: debug1: Connection to port 59450 forwarding to socks port 0 requested.
debug1: channel 5: new dynamic-tcpip [dynamic-tcpip] (inactive timeout: 0)

2025-07-19 02:09:18.817 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][4dc36a1f-c07f-49d2-abb5-3787a579dc0e] socks forwarding established
2025-07-19 02:09:18.909 [info] Saved platform linux for remote host xx.xx.xx.xx(remote host ip address)
2025-07-19 02:09:21.747 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][7a6e6397-b0da-4964-921a-2a697190c974] socks connection closed
2025-07-19 02:09:21.748 [info] (ssh_tunnel) stderr: debug1: channel 4: free: direct-tcpip: listening port 59450 for 127.0.0.1 port 46135, connect from 127.0.0.1 port 59474 to 127.0.0.1 port 59450, nchannels 6

2025-07-19 02:10:00.500 [info] Resolving ssh remote authority 'xx.xx.xx.xx(remote host ip address)' (Unparsed 'ssh-remote+7b22686f73744e616d65223a2231302e31332e37332e3936227d') (attempt #2)
2025-07-19 02:10:00.500 [info] Received re-connection request; checking to see if existing connection is still valid
2025-07-19 02:10:00.503 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:46135][3cc998ae-29bc-4830-83dd-766fe90754fe] received connection request
2025-07-19 02:10:00.504 [info] (ssh_tunnel) stderr: debug1: Connection to port 59450 forwarding to socks port 0 requested.
debug1: channel 4: new dynamic-tcpip [dynamic-tcpip] (inactive timeout: 0)

2025-07-19 02:10:00.514 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][3cc998ae-29bc-4830-83dd-766fe90754fe] socks forwarding established
2025-07-19 02:10:03.508 [error] Unexpected error while checking if existing connection is still valid Timeout while checking if existing connection is still valid
2025-07-19 02:10:03.508 [error] Failed to connect to Cursor server at http://127.0.0.1:59469, attempt 1 of 3 This operation was aborted
2025-07-19 02:10:03.511 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:46135][13efe434-bf94-4597-be51-43dc580435d8] received connection request
2025-07-19 02:10:03.511 [info] (ssh_tunnel) stderr: debug1: Connection to port 59450 forwarding to socks port 0 requested.
debug1: channel 6: new dynamic-tcpip [dynamic-tcpip] (inactive timeout: 0)

2025-07-19 02:10:03.519 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][13efe434-bf94-4597-be51-43dc580435d8] socks forwarding established
2025-07-19 02:10:03.790 [info] Terminating existing SSH process with pid: 20720
2025-07-19 02:10:03.790 [info] Using configured platform linux for remote host xx.xx.xx.xx(remote host ip address)
2025-07-19 02:10:03.790 [info] Using askpass script: c:\Users\17819\.cursor\extensions\anysphere.remote-ssh-1.0.22\dist\scripts\launchSSHAskpass.bat with javascript file c:\Users\17819\.cursor\extensions\anysphere.remote-ssh-1.0.22\dist\scripts\sshAskClient.js. Askpass handle: 59449
2025-07-19 02:10:03.791 [info] (ssh_tunnel): exit: code=1 signal=null
2025-07-19 02:10:03.793 [error] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][fd448326-a0fb-4ed4-9706-1de2900492ce] socks connection threw an error A system error occurred (read ECONNRESET)
2025-07-19 02:10:03.793 [error] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][13efe434-bf94-4597-be51-43dc580435d8] socks connection threw an error A system error occurred (read ECONNRESET)
2025-07-19 02:10:03.793 [error] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][3cc998ae-29bc-4830-83dd-766fe90754fe] socks connection threw an error A system error occurred (read ECONNRESET)
2025-07-19 02:10:03.794 [error] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][4dc36a1f-c07f-49d2-abb5-3787a579dc0e] socks connection threw an error A system error occurred (read ECONNRESET)
2025-07-19 02:10:03.794 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][4dc36a1f-c07f-49d2-abb5-3787a579dc0e] socks connection closed
2025-07-19 02:10:03.794 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][3cc998ae-29bc-4830-83dd-766fe90754fe] socks connection closed
2025-07-19 02:10:03.794 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][13efe434-bf94-4597-be51-43dc580435d8] socks connection closed
2025-07-19 02:10:03.795 [info] [forwarding][code][127.0.0.1:59469 -> 127.0.0.1:59450 -> 127.0.0.1:46135][fd448326-a0fb-4ed4-9706-1de2900492ce] socks connection closed
2025-07-19 02:10:03.809 [info] Launching SSH server via shell with command: type "C:\Users\17819\AppData\Local\Temp\cursor_remote_install_29974.sh" | ssh -v -T -D 59780 xx.xx.xx.xx(remote host ip address) bash --login -c bash
2025-07-19 02:10:03.809 [info] Started installation script. Waiting for it to finish...
2025-07-19 02:10:03.809 [info] Waiting for server to install via process(23940)...
2025-07-19 02:10:03.915 [info] (ssh_tunnel) stderr: OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

2025-07-19 02:10:03.916 [info] (ssh_tunnel) stderr: debug1: Reading configuration data C:\\Users\\17819/.ssh/config

2025-07-19 02:10:03.916 [info] (ssh_tunnel) stderr: debug1: C:\\Users\\17819/.ssh/config line 6: Applying options for xx.xx.xx.xx(remote host ip address)

2025-07-19 02:10:03.916 [info] (ssh_tunnel) stderr: debug1: C:\\Users\\17819/.ssh/config line 87: Applying options for *

2025-07-19 02:10:03.926 [info] (ssh_tunnel) stderr: debug1: Connecting to xx.xx.xx.xx(remote host ip address) [xx.xx.xx.xx(remote host ip address)] port 6247.

2025-07-19 02:10:03.929 [info] (ssh_tunnel) stderr: debug1: Connection established.

2025-07-19 02:10:03.931 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_rsa type -1

2025-07-19 02:10:03.931 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_rsa-cert type -1

2025-07-19 02:10:03.932 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ecdsa type -1

2025-07-19 02:10:03.932 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ecdsa-cert type -1

2025-07-19 02:10:03.932 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ecdsa_sk type -1

2025-07-19 02:10:03.933 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ecdsa_sk-cert type -1

2025-07-19 02:10:03.933 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ed25519 type -1

2025-07-19 02:10:03.933 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ed25519-cert type -1

2025-07-19 02:10:03.934 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ed25519_sk type -1

2025-07-19 02:10:03.934 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_ed25519_sk-cert type -1

2025-07-19 02:10:03.935 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_xmss type -1

2025-07-19 02:10:03.936 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_xmss-cert type -1

2025-07-19 02:10:03.937 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_dsa type -1

2025-07-19 02:10:03.937 [info] (ssh_tunnel) stderr: debug1: identity file C:\\Users\\17819/.ssh/id_dsa-cert type -1

2025-07-19 02:10:03.938 [info] (ssh_tunnel) stderr: debug1: Local version string SSH-2.0-OpenSSH_for_Windows_9.5

2025-07-19 02:10:03.957 [info] (ssh_tunnel) stderr: debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3ubuntu0.13

2025-07-19 02:10:03.958 [info] (ssh_tunnel) stderr: debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3ubuntu0.13 pat OpenSSH* compat 0x04000000

2025-07-19 02:10:03.958 [info] (ssh_tunnel) stderr: debug1: Authenticating to xx.xx.xx.xx(remote host ip address):6247 as 'rbl'

2025-07-19 02:10:03.961 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen C:\\Users\\17819/.ssh/known_hosts2: No such file or directory

2025-07-19 02:10:03.961 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory

2025-07-19 02:10:03.961 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory

2025-07-19 02:10:03.962 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEXINIT sent

2025-07-19 02:10:03.964 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEXINIT received

2025-07-19 02:10:03.965 [info] (ssh_tunnel) stderr: debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519

2025-07-19 02:10:03.965 [info] (ssh_tunnel) stderr: debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none

2025-07-19 02:10:03.965 [info] (ssh_tunnel) stderr: debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none

2025-07-19 02:10:03.966 [info] (ssh_tunnel) stderr: debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

2025-07-19 02:10:03.987 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_KEX_ECDH_REPLY received

2025-07-19 02:10:03.987 [info] (ssh_tunnel) stderr: debug1: Server host key: ssh-ed25519 SHA256:lK21cIn6C8lt3cm+Bsada3mxcnAb2UQX0C1PrnjrLvU

2025-07-19 02:10:03.991 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen C:\\Users\\17819/.ssh/known_hosts2: No such file or directory

2025-07-19 02:10:03.991 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory

2025-07-19 02:10:03.992 [info] (ssh_tunnel) stderr: debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory

2025-07-19 02:10:03.992 [info] (ssh_tunnel) stderr: debug1: Host '[xx.xx.xx.xx(remote host ip address)]:6247' is known and matches the ED25519 host key.

2025-07-19 02:10:03.992 [info] (ssh_tunnel) stderr: debug1: Found key in C:\\Users\\17819/.ssh/known_hosts:37

2025-07-19 02:10:03.997 [info] (ssh_tunnel) stderr: debug1: ssh_packet_send2_wrapped: resetting send seqnr 3

2025-07-19 02:10:03.997 [info] (ssh_tunnel) stderr: debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent

2025-07-19 02:10:03.997 [info] (ssh_tunnel) stderr: debug1: expecting SSH2_MSG_NEWKEYS

2025-07-19 02:10:03.998 [info] (ssh_tunnel) stderr: debug1: ssh_packet_read_poll2: resetting read seqnr 3

2025-07-19 02:10:03.998 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks

2025-07-19 02:10:03.998 [info] (ssh_tunnel) stderr: debug1: get_agent_identities: ssh_get_authentication_socket: No such file or directory

2025-07-19 02:10:03.998 [info] (ssh_tunnel) stderr: debug1: Will attempt key: C:\\Users\\17819/.ssh/id_rsa 

2025-07-19 02:10:03.998 [info] (ssh_tunnel) stderr: debug1: Will attempt key: C:\\Users\\17819/.ssh/id_ecdsa 

2025-07-19 02:10:03.999 [info] (ssh_tunnel) stderr: debug1: Will attempt key: C:\\Users\\17819/.ssh/id_ecdsa_sk 
debug1: Will attempt key: C:\\Users\\17819/.ssh/id_ed25519 

2025-07-19 02:10:03.999 [info] (ssh_tunnel) stderr: debug1: Will attempt key: C:\\Users\\17819/.ssh/id_ed25519_sk 

2025-07-19 02:10:03.999 [info] (ssh_tunnel) stderr: debug1: Will attempt key: C:\\Users\\17819/.ssh/id_xmss 
debug1: Will attempt key: C:\\Users\\17819/.ssh/id_dsa 

2025-07-19 02:10:04.000 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]>
debug1: kex_ext_info_check_ver: [email protected]=<0>

2025-07-19 02:10:04.054 [info] (ssh_tunnel) stderr: debug1: SSH2_MSG_SERVICE_ACCEPT received

2025-07-19 02:10:04.065 [info] (ssh_tunnel) stderr: debug1: Authentications that can continue: publickey,password

2025-07-19 02:10:04.065 [info] (ssh_tunnel) stderr: debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\17819/.ssh/id_rsa

2025-07-19 02:10:04.066 [info] (ssh_tunnel) stderr: debug1: Trying private key: C:\\Users\\17819/.ssh/id_ecdsa

2025-07-19 02:10:04.066 [info] (ssh_tunnel) stderr: debug1: Trying private key: C:\\Users\\17819/.ssh/id_ecdsa_sk

2025-07-19 02:10:04.066 [info] (ssh_tunnel) stderr: debug1: Trying private key: C:\\Users\\17819/.ssh/id_ed25519

2025-07-19 02:10:04.066 [info] (ssh_tunnel) stderr: debug1: Trying private key: C:\\Users\\17819/.ssh/id_ed25519_sk
debug1: Trying private key: C:\\Users\\17819/.ssh/id_xmss
debug1: Trying private key: C:\\Users\\17819/.ssh/id_dsa

2025-07-19 02:10:04.067 [info] (ssh_tunnel) stderr: debug1: Next authentication method: password
debug1: read_passphrase: requested to askpass

2025-07-19 02:10:04.295 [info] Askpass server received request: POST /
2025-07-19 02:10:04.295 [info] Askpass server received request body: {"request":"[email protected](remote host ip address)'s password: "}
2025-07-19 02:10:04.295 [info] Received SSH askpass request: [email protected](remote host ip address)'s password: 
2025-07-19 02:10:04.520 [error] Failed to connect to Cursor server at http://127.0.0.1:59469, attempt 2 of 3 This operation was aborted
2025-07-19 02:10:05.533 [error] Failed to connect to Cursor server at http://127.0.0.1:59469, attempt 3 of 3 This operation was aborted
2025-07-19 02:10:05.533 [error] Could not re-use existing SOCKS connection; attempting to re-establish SOCKS forwarding Failed to connect to Cursor code server. Ensure that your remote host ssh config has 'AllowTcpForwarding yes' in '/etc/ssh/sshd_config'. Please check the logs and try reinstalling the server.
2025-07-19 02:10:05.533 [error] Could not re-establish SOCKS forwarding; re-establishing entire SSH connection Remote server is not set
2025-07-19 02:10:18.733 [info] [remote-ssh] Pinging remote server on port 127.0.0.1:59470
2025-07-19 02:10:18.733 [error] [forwarding][multiplex][127.0.0.1:59470 -> unknown}][4ffdda70-8647-41d4-849e-c05d7e5bcacf] remote server not configured
2025-07-19 02:10:18.734 [info] [command][863f3516-ea68-40ce-a3c2-a72412cf6ebe] Sending command request: {"command":"echo","args":["1"],"env":{},"token":"4f7c61d7-f796-49f4-ae10-eb6efde14516","id":"863f3516-ea68-40ce-a3c2-a72412cf6ebe"}
2025-07-19 02:10:18.734 [error] [command][863f3516-ea68-40ce-a3c2-a72412cf6ebe] Socket error: Error: read ECONNRESET
2025-07-19 02:10:18.734 [info] [command][863f3516-ea68-40ce-a3c2-a72412cf6ebe] Socket close event received

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

version:1.1.5
vscode version:1.96.2
commit:ef5eeb47a684b4c217dfaf0463aa7ea952f8ab90

Does this stop you from using Cursor

Yes - Cursor is unusable

Please help me!!!

Need Help!

Hi @johnren-code, on your remote server, could you run htop and see if the memory or CPU is pegged?

In addition, how many large is the repo that you’re opening with Cursor on the remote host. Could you try opening an empty folder on your remote host with Cursor, and see if the connection continues to drop immediately after connecting?

Thank you for your kindly reply, I retrid opening cursor with a smaller project foler, and it works! The reason may be that the project folder I opened before is too large(many dataset files), but I didn’t encounter this problem when I use VsCode and older version cursor(0.46.x), so I’m curious about why this problem would happen and I hope you can fix it in the future. (.cursorignore is configured in my project root folder). Maybe cursor’s own ssh ?

I have another question, when I install extensions(python) in ssh remote server, it is stucking at installing, how to solve it? My remote server don’t have internet connection.

Hi @johnren-code, Cursor 1.3.0 (which will be rolling out shortly) should fix issues with installing extensions onto remote hosts that lack external internet.

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