Remote-SSH: Connection to Cursor server failed: Failed to install server within the timeout

Describe the Bug

When attempting to connect via Anysphere.Remote‑SSH, the install script hangs and eventually terminates due to a timeout. It prompted “Connection to Cursor server failed: Failed to install server within the timeout.” And asked to Reinstall Server or Reload Window. Sometimes it takes a few hours to successfully connect.

When I use VS Code, I can connect to the same server (using same .ssh/config) within 3 mins.

I have attached:

  • The output log of Remote - SSH.txt of Cursor
  • my settings.json of Cursor is below:
{
    "extensions.autoUpdate": false,
    "update.mode": "none",
    "extensions.autoCheckUpdates": false,
    "remote.SSH.remotePlatform": {
        "sherlock": "linux",
        "sherlock2": "linux",
        "mlops2": "linux",
        "mlops": "linux"
    },
    "editor.fontSize": 18,
    "debug.console.fontSize": 18,
    "git.ignoreLegacyWarning": true,
    "files.watcherExclude": {
    },
    "files.autoSave": "afterDelay",
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "python.analysis.aiCodeActions": {},
    "python.analysis.exclude": [
        "**/miniconda3",
        "**/__pycache__",
        ".git"
    ],
    "terminal.integrated.fontSize": 16,
    "markdown.preview.fontSize": 16,
    "chat.editor.fontSize": 18,
    "explorer.confirmDragAndDrop": false,
    "cursorpyright.analysis.exclude": [
        "**/miniconda3",
        "**/__pycache__",
        ".git",
    ],
    "cursorpyright.analysis.fileEnumerationTimeout": 30,
    "workbench.colorTheme": "Default Dark+",
    "remote.SSH.connectTimeout": 300,
    "cursor.composer.textSizeScale": 1.15,
    "cursor.general.disableHttp2": true,
    "remote.tunnels.access.preventSleep": true,
    "remote.SSH.enableAgentForwarding": false,
    "remote.SSH.httpProxy": null,
    "remote.SSH.httpsProxy": null,
    "cursor.general.disableHttp1SSE": true
}
  • the successful setup for VS Code is listed. However I have to downgrade VS Code from newest (1.100.3) to version 1.95 to successfully connect to the remote server. (I don’t know why, something related to glibc version). The MS.Remote-SSH is version 0.115.1.
# My VS Code setup, which can successfully connect to remote server within 3mins
Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100

Steps to Reproduce

Trying to connect to remote server using Remote-SSH.

Screenshots / Screen Recordings

Remote-SSH output.txt (1.24 MB)

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6 (user setup)
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:20:02.577Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Additional Information

Not sure if this is relevant. I also need to switch HTTP2.0 to HTTP1.1 for “Code Indexing” to work.

Does this stop you from using Cursor

Yes - Cursor is unusable

Screenshots of my Remote-SSH settings are below: