When connecting via SSH, an error occurs

Describe the Bug

When I use SSH to connect to a remote Linux server, the first connection is successful, but the terminal becomes extremely laggy after connecting. The connection drops after about tens of seconds, and reloading the window fails to reconnect. If I click “reinstall server” at this point, it deletes ~/.cursor-server and starts downloading some files, after which the connection is restored—but the same issue recurs, with the connection dropping again after tens of seconds.
I have tested Cursor versions 0.50 and 1.1, as well as various versions of Remote-SSH (1.0.20, 1.0.8) and ms-remote-ssh-0.113.1, and this bug persists across all configurations.

log

2025-07-07 16:58:45.496 [error] Failed to connect to Cursor server at http://127.0.0.1:62188, attempt 2 of 3 This operation was aborted
2025-07-07 16:58:46.509 [error] Failed to connect to Cursor server at http://127.0.0.1:62188, attempt 3 of 3 This operation was aborted
2025-07-07 16:58:46.510 [error] Error resolving SSH authority 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.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.1 (user setup)
VSCode Version: 1.99.3

Does this stop you from using Cursor

Yes - Cursor is unusable

Same question, have you solved it?

Hi @ignore1999 and @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 ?

Yes – we are looking into it. We believe this is due to something we changed in the core editor, which is making excessive filesystem operations and overloading the connection between the main editor and the remote extension host. I’d recommend opening multiple, smaller windows and/or using multi-root workspaces to reduce the # of files.

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