Hi everyone,
I’m encountering an issue when connecting to a remote Windows machine via Cursor Remote SSH. The SSH connection itself succeeds, and the Cursor server starts correctly, but the client fails to connect through the forwarded port.
Environment
-
Local OS: Windows 11
-
Remote host: Windows 10
-
Remote SSH extension:
anysphere.remote-ssh-1.0.44 -
Connection type: SSH with SOCKS forwarding
What Works
-
SSH authentication succeeds.
-
Cursor server installs (or detects existing installation).
-
Cursor server starts successfully.
-
The server listens on a remote port (e.g., 51200 / 51209).
Example log:
SSH connection established
Server already installed
Starting server ...
Listening on port: 51209
exitCode==0==
isFatalError==false==
The Problem
After the server starts, Cursor attempts to connect via a local forwarded port (e.g., 127.0.0.1:59552 or 127.0.0.1:61642), but the connection repeatedly fails.
Logs show:
socks forwarding established
socks connection closed
Failed to connect to Cursor server at http://127.0.0.1:59552
fetch failed
Could not re-use existing SOCKS connection
Ensure that your remote host ssh config has 'AllowTcpForwarding yes'
It retries multiple times and eventually re-establishes the entire SSH connection, but the issue repeats.
Observations
-
The remote server clearly starts and listens on a port.
-
SOCKS forwarding appears to establish briefly, then immediately closes.
-
Errors include:
-
fetch failed -
read ECONNRESET -
The operation was aborted due to timeout
-
What I’ve Checked
-
SSH login works manually.
-
The server is confirmed running on the remote side.
-
The issue seems specifically related to port forwarding / SOCKS forwarding.
-
Remote host is Windows (so
/etc/ssh/sshd_configdoes not apply in the usual Linux way).
Questions
-
Does Remote SSH to Windows require specific SSH server settings to allow TCP forwarding?
-
Is this a known issue with version
1.0.44of the remote-ssh extension? -
Could Windows firewall or antivirus software be interfering with the SOCKS forwarding?
-
Is there a recommended way to manually test whether Cursor’s expected forwarded port is reachable?
Any guidance would be greatly appreciated.
Thank you!