Remote - SSH errors when activating

I’m trying to use the Remote - SSH extension in Cursor but I’m seeing an error in the extension host that it cannot be activated.

2025-01-15 18:02:26.653 [error] Activating extension ms-vscode-remote.remote-ssh failed due to an error:
2025-01-15 18:02:26.653 [error] /Users/maimar/.cursor/extensions/ms-vscode-remote.remote-ssh-0.113.1/out/extension.js:3
});
   

SyntaxError: Unexpected end of input
	at new Script (node:vm:116:7)
	at c._compile (/Applications/Cursor.app/Contents/Resources/app/out/bootstrap-fork.js:4:1131)
	at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
	at Module.load (node:internal/modules/cjs/loader:1215:32)
	at Module._load (node:internal/modules/cjs/loader:1031:12)
	at c._load (node:electron/js2c/node_init:2:13801)
	at R._load (/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:215:6062)
	at a._load (/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:212:32159)
	at f._load (/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:177:40667)
	at Module.require (node:internal/modules/cjs/loader:1240:19)
	at require (node:internal/modules/helpers:179:18)
	at i (/Applications/Cursor.app/Contents/Resources/app/out/bootstrap-fork.js:5:98)
	at h.yb (/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:212:33361)
	at async Promise.all (index 0)

Cursor only allows me to install version 0.113.1 of the extension. I checked other posts on related topics and some people seem to made it work. I don’t know what can I try to fix it. Does somebody have this working and can share their Cursor and Remote - SSH versions?

Version: 0.44.11
VSCode Version: 1.93.1
Commit: fe574d0820377383143b2ea26aa6ae28b3425220
Date: 2025-01-03T07:59:06.361Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

Thanks!

I just rm -rf 'd the extension from the path that I found in the extension host output and it’s working now :partying_face:

Great to hear you figured it out!

This worked for me too! For anyone running into this issue, use this command
rm -rf ~/.cursor/ms-vscode-remote.remote-ssh-0.113.1 then reinstall the extension

For google searches to find this, the errors I had were
“command ‘opensshremotes.openEmptyWindow’ not found”

As well as “ms-vscode-remote.remote-ssh’ failed: Unexpected end of input.” in developer tools