I’m trying to SSH into my HuggingFace Space using the Remote - SSH extension from Anysphere but the process is hanging (dies after 30 seconds). It works on VSCode, but I understand there are some differences between VS Code’s Remote - SSH extension and the one from Anysphere.
What I’ve tried:
-
Changing the prefix from “vscode” to “cursor” in the connect link (this step is necessary).
- e.g. “cursor://vscode-remote/ssh-remote+<SPACE_NAME>@ssh.hf.space/home/user/app” instead of “vscode://vscode-remote/ssh-remote+<SPACE_NAME>@ssh.hf.space/home/user/app”
-
Increasing the timeout time (up to 5 minutes), still times out.
-
Playing around with additional Remote - SSH configurations in the settings.json (taken from VSCode extension settings)
-
all settings besides “connectTimeout” and “path” are greyed out with an “Unknown Configuration setting” message when hovered over. Are they even used in the Anysphere version?
-
"remote.SSH.connectTimeout": 30, "remote.SSH.useLocalServer": false, "remote.SSH.enableExecServer": true, "remote.SSH.useFlock": true, "remote.SSH.path": "ssh",
-
-
Confirming the Cursor server is being installed properly and is running on the HF Space
- I SSH’d into the HF Space and confirmed that the processes were running with “ps aux | grep cursor” and that ~/.cursor-server was installed.
Still, I get this error (log level set to “Trace”):
2025-12-31 14:50:11.347 [info] Resolving ssh remote authority ‘<SPACE_NAME>@ssh.hf.space’ (Unparsed ‘ssh-remote+<SPACE_NAME>@ssh.hf.space’) (attempt #1)
2025-12-31 14:50:11.352 [info] SSH askpass server listening on /var/folders/ls/lk2x63852z1b7qh25yx5f3h40000gn/T/cursor-ssh-56t9dv/socket.sock
2025-12-31 14:50:11.352 [debug] hostname: ssh.hf.space, remote platform map: {“ssh.hf.space”:“linux”,“<SPACE_NAME>@localhost”:“linux”}
2025-12-31 14:50:11.353 [info] Using configured platform linux for remote host ssh.hf.space
2025-12-31 14:50:11.353 [debug] hostname: ssh.hf.space, remote server install map: {}
2025-12-31 14:50:11.353 [debug] hostname: ssh.hf.space, server port range map: {}
2025-12-31 14:50:11.353 [info] Using askpass script: /Users/landon/.cursor/extensions/anysphere.remote-ssh-1.0.36/dist/scripts/launchSSHAskpass.sh with javascript file /Users/landon/.cursor/extensions/anysphere.remote-ssh-1.0.36/dist/scripts/sshAskClient.js. Askpass handle: /var/folders/ls/lk2x63852z1b7qh25yx5f3h40000gn/T/cursor-ssh-56t9dv/socket.sock
2025-12-31 14:50:11.356 [info] Launching SSH server via shell with command: cat “/var/folders/ls/lk2x63852z1b7qh25yx5f3h40000gn/T/cursor_remote_install_bb27cc31-b979-4aa8-99c8-cd1ced44e4c5.sh” | ssh -T -D 50253 <SPACE_NAME>@ssh.hf.space bash --login -c bash
2025-12-31 14:50:11.356 [info] Establishing SSH connection: cat “/var/folders/ls/lk2x63852z1b7qh25yx5f3h40000gn/T/cursor_remote_install_bb27cc31-b979-4aa8-99c8-cd1ced44e4c5.sh” | ssh -T -D 50253 <SPACE_NAME>@ssh.hf.space bash --login -c bash
2025-12-31 14:50:11.357 [info] Started installation script. Waiting for it to finish…
2025-12-31 14:50:11.357 [info] Waiting for server to install. Timeout: 30000ms
2025-12-31 14:50:41.360 [error] Error installing server: Failed to install server within the timeout
2025-12-31 14:50:41.360 [info] Deleting local script /var/folders/ls/lk2x63852z1b7qh25yx5f3h40000gn/T/cursor_remote_install_bb27cc31-b979-4aa8-99c8-cd1ced44e4c5.sh
2025-12-31 14:50:41.362 [error] Error resolving SSH authority Failed to install server within the timeout
Has anybody ran into this issue and found a solution for it? It seems that at one point in time all you had to do was change the prefix to ‘cursor’ in the connect link, but now updates have made it more complicated.
I’d really like to use my Cursor IDE instead of VS Code if possible!