Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Persistent “Failed to connect to the remote extension host server (Error: WebSocket close with status code 1006)” combined with “Could not fetch remote environment” on every connection attempt to my Hostinger VPS via SSH.
The status bar shows the SSH connection is established (SSH: 187.124.18.165), but the extension host never comes up. Reload Window does not help — same error reappears immediately. This blocks all remote development: no terminal, no agent, no file editing on the remote side.
The exact same VPS works flawlessly with Microsoft’s official Remote-SSH extension in VS Code, so the issue is isolated to the Anysphere fork.
Steps to Reproduce
-
Fresh Cursor install on macOS, imported VS Code settings on first launch
-
Cmd+Shift+P → “Remote-SSH: Connect to Host” → select “vps” from ~/.ssh/config
-
SSH connection succeeds (status bar shows “SSH: ”, terminal works)
-
Two error toasts appear within seconds:
- “Could not fetch remote environment”
- “Failed to connect to the remote extension host server (Error: WebSocket close with status code 1006)”
-
Clicking “Reload Window” reproduces the exact same error
-
Cleanup attempt did not help:
- pkill -9 -f cursor-server (and vscode-server)
- rm -rf ~/.cursor-server ~/.vscode-server on the VPS
- Reconnect from scratch → Cursor reinstalls server cleanly, fresh cursor-server processes appear in ps, WebSocket still fails on the very first handshake
Expected Behavior
After connecting via Remote-SSH (or after cleanup + reconnect), the extension host should come up cleanly and the WebSocket handshake should complete — same behavior as Microsoft’s Remote-SSH extension in VS Code on the identical VPS.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Cursor: latest stable (Pro plan, fresh install today, 2026-04-25)
Anysphere Remote-SSH extension: 1.0.48 (auto-updated to latest today, 2026-04-25 13:01)
macOS: 26.4.1 (MacBook Air)
Remote: Ubuntu 24.04 LTS, Linux 6.8.0-110-generic
VPS: Hostinger KVM2 (8 GB RAM, 100 GB disk, 4.8 GB RAM available, 25 GB disk free, 2% CPU at time of failure)
(I will reply with the exact Cursor version string from About Cursor as a follow-up — currently the SSH window is not stable enough to access the menu reliably.)
Additional Information
Network setup
- VPS reached via ~/.ssh/config alias “vps” pointing to public IP 187.124.18.165
- Tailscale tailnet is active on both sides (SSH mode enabled on VPS), but Cursor uses the public IP path per ssh config
- VPS runs Docker + Traefik (Hostinger’s standard stack)
Why I believe this is an Anysphere-side issue, not VPS-side
- VS Code Remote-SSH (Microsoft’s official) works perfectly on the same VPS
- VPS resources are not constrained at failure time (RAM, disk, CPU all healthy)
- Multiple users report identical symptoms across different VPS providers since mid-2025
Related forum threads with same symptom
- “Anysphere remote ssh doesn’t work well” (June 2025)
- “SSH remote development broken on update” (October 2025)
- “Every time after the upgrade, Cursor Remote-SSH times out” (December 2025)
- “Problem with Remote SSH” (July 2025)
- “SSH connection Error” (December 2025) — anysphere.remote-ssh 1.0.36
Logs
I will attach Remote-SSH output logs as a reply once the post is live (View → Output → Remote-SSH).
Does this stop you from using Cursor
Yes - Cursor is unusable
