Recently, it became difficult for me to connect via SSH to a remote Linux server. When I tried to connect, it would ask for the one-time authentication code and my password as usual, but 9 out of 10 times, it would fail to connect. In the 1 out of 10 chance when I successfully connected, oftentimes it failed to load some of the Python extensions. I only rarely got Cursor to work without issues on the server. In the meantime, I could use Terminal to connect to the server without a problem, so it must be due to an issue with Cursor. I am using Cursor Version 0.45.11 and VSCode Version 1.96.2. My local machine runs OS X 15.3, and the remote machine runs Red Hat Enterprise Linux 9.5.
Do you see any specific error messages when the connection fails?
This would help narrow down what’s causing the issue. Also, when it does connect but Python extensions fail, are there any error messages in the relevant tabs under the ‘Output’ pane?
Below is the error message popping up when the Python extensions fail:
The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.).
And these are what’s in the Output pane:
[11:54:49.256] Log Level: 2
[11:54:49.265] SSH Resolver called for "ssh-remote+fox.educloud.no", attempt 1
[11:54:49.265] "remote.SSH.useLocalServer": true
[11:54:49.265] "remote.SSH.useExecServer": true
[11:54:49.266] "remote.SSH.path": undefined
[11:54:49.266] "remote.SSH.configFile": undefined
[11:54:49.266] "remote.SSH.useFlock": true
[11:54:49.266] "remote.SSH.lockfilesInTmp": false
[11:54:49.266] "remote.SSH.localServerDownload": auto
[11:54:49.266] "remote.SSH.remoteServerListenOnSocket": false
[11:54:49.266] "remote.SSH.showLoginTerminal": false
[11:54:49.266] "remote.SSH.defaultExtensions": []
[11:54:49.266] "remote.SSH.loglevel": 2
[11:54:49.266] "remote.SSH.enableDynamicForwarding": true
[11:54:49.266] "remote.SSH.enableRemoteCommand": false
[11:54:49.266] "remote.SSH.serverPickPortsFromRange": {}
[11:54:49.266] "remote.SSH.serverInstallPath": {}
[11:54:49.266] "remote.SSH.permitPtyAllocation": false
[11:54:49.266] "remote.SSH.preferredLocalPortRange: undefined
[11:54:49.266] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[11:54:49.272] VS Code version: 0.45.15
[11:54:49.272] Remote-SSH version: [email protected]
[11:54:49.272] darwin arm64
[11:54:49.273] SSH Resolver called for host: fox.educloud.no
[11:54:49.273] Setting up SSH remote "fox.educloud.no"
[11:54:49.274] Acquiring local install lock: /var/folders/g_/v8s66_f534z8yywg4r5vbcsr0000gn/T/vscode-remote-ssh-94f2d616-install.lock
[11:54:49.275] Looking for existing server data file at /Users/tianzeliu/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-94f2d616-a2826398d8d8197cad72fb0cfdc1f472aa7cf050-0.113.1-es/data.json
[11:54:49.276] Found local server running: {"remoteListeningOn":{"port":42003},"osReleaseId":"rhel","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/run/user/2102037","platform":"linux","execServerToken":"20eb371e-62a4-485b-8868-30808bb3644d","pid":63634,"ipcHandlePath":"/var/folders/g_/v8s66_f534z8yywg4r5vbcsr0000gn/T/vscode-ssh-askpass-4d9662790fffd1ecabb2bf427b7f7f75a27438e3.sock","socksPort":57622,"startupTime":1740243244527}
[11:54:49.280] Found running server - short-circuiting install
[11:54:49.281] Starting forwarding server. local port 57667 -> socksPort 57622 -> remotePort 42003
[11:54:49.282] Forwarding server listening on port 57667
[11:54:49.282] Waiting for ssh tunnel to be ready
[11:54:49.282] Tunneled port 42003 to local port 57667
[11:54:49.282] Resolved "ssh-remote+fox.educloud.no" to "port 57667"
[11:54:49.286] Initizing new exec server for ssh-remote+fox.educloud.no
[11:54:49.286] Resolving exec server at port 57667
[11:54:49.294] [Forwarding server port 57667] Got connection 0
[11:54:49.295] [Forwarding server port 57667] Got connection 1
[11:54:49.663] Exec server for ssh-remote+fox.educloud.no created and cached
[11:54:49.674] ------
[11:54:49.845] [server] Checking /fp/homes01/u01/ec-tianzel/.cursor-server/cli/servers/Stable-a2826398d8d8197cad72fb0cfdc1f472aa7cf050/log.txt and /fp/homes01/u01/ec-tianzel/.cursor-server/cli/servers/Stable-a2826398d8d8197cad72fb0cfdc1f472aa7cf050/pid.txt for a running server...
[11:54:49.865] [server] Found running server (pid=1502017)
Can you try to delete the /fp/homes01/u01/ec-tianzel/.cursor-server/
folder, to force Cursor to redownload it fresh? It may help to uninstall and reinstal Cursor to ensure you are on the latest version!
The problem persists after I updated Cursor.
I noticed that the VS Code version of my Cursor is 1.96.2, whereas the most recent VS Code version is 1.97. How can I update it?