SSH Remote Login (still) Not Working

Hi. Friendly reminder: The SSH Remote Login (still) does not work. Works fine in VSCode. From October of '23, this seems to be an outstanding issue, Can you give me/others a status on a fix?
Thanks

2 Likes

Hi Graham.

We already pushed out a fix for ssh about a month ago. I also just checked on my side and SSH was working.

Seems to me this is a different SSH bug than the one from October.

Are you on Windows or Mac? And which operating system are you SSHing into?

I’m on a macbook ssh’ing into a Windows 10 Machine…
The below works in VSCode

Host Windows
HostName DESKTOP_THING
User user_name
IdentityFile ~/.ssh/id_ed25519
RemoteCommand cmd.exe

Host Ubuntu
HostName DESKTOP_THING
User user_name
IdentityFile ~/.ssh/id_ed25519
RemoteCommand wsl

I see, we don’t support SSH onto non-linux machines (i.e. we can do windows/linux/mac → linux)

As VSCode already does this, do you plan to support logging into a Windows 10 WSL 2 machine? It’s a crucial part of my own workflow, perhaps to others as well

2 Likes

I am working on MacOS, trying to ssh into Linux via “Connect to Host”. Am I understanding correctly, that you think this should be working right now in Cursor?

Because for me at least it’s definitely not. It does in vscode, though.

[Info  - 09:58:00.472] Resolving ssh remote authority 'ssh-remote+[REDACTED]' (attempt #1)
[Trace  - 09:58:00.493] Identity keys:
[REDACTED] ssh-rsa [REDACTED]
[Info  - 09:58:00.665] Trying no-auth authentication
[Info  - 09:58:00.697] Trying publickey authentication: [REDACTED] ssh-rsa [REDACTED]
[Info  - 09:58:00.699] Trying password authentication
[Error  - 09:58:20.899] Error resolving authority
Error: All configured authentication methods failed
	at _e (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:143771)
	at /Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:442730
	at authHandler (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:438250)
	at Ee (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:146644)
	at USERAUTH_FAILURE (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:135448)
	at 51 (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:286953)
	at e.exports.U (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:157386)
	at U.decrypt (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:250538)
	at e.exports.J [as _parse] (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:156910)
	at e.exports.parse (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:160713)
	at Socket.<anonymous> (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:142511)
	at Socket.emit (node:events:513:28)
	at Socket.emit (node:domain:489:12)
	at addChunk (node:internal/streams/readable:324:12)
	at readableAddChunk (node:internal/streams/readable:297:9)
	at Readable.push (node:internal/streams/readable:234:10)
	at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

I wanted to give a ping for this WSL SSH Remote issue. Today, I checked Cursor again to see if it’s ssh remote into WSL works yet, which (sadly) it doesn’t.
I’ll continue with VSCode and check back every now and then. Or, maybe this bug is on the radar/queue for Cursor to support/fix. It’s a deal killer for me as I ssh into WSL on a daily basis. No worries. Not everyone needs this.

Is there no plan to support it in the future? Is there a workaround to SSH into a windows machine from a mac? I love Cursor man, that could e super useful if added, or even a workaround maybe

3 Likes

I can’t say for certain what fixed it, but I was able to fix a broken devcontainer, because I fortunately had a similar working one to compare it to.

If I narrow the cause further I will update. This is what was different:

  1. connected to docker container (outside vscode) and deleted .cursor_server
  2. Disabled all cursor features in vscode settings
  3. AND these changes in .devcontainer:

diff --git a/.devcontainer/localstack/devcontainer.json b/.devcontainer/localstack/devcontainer.json
index 886575d..ea72f91 100644
--- a/.devcontainer/localstack/devcontainer.json
+++ b/.devcontainer/localstack/devcontainer.json
@@ -14,14 +14,14 @@
         "vim.useSystemClipboard": true,
         "vim.useCtrlKeys": true,
         "vim.hlsearch": true,
-        "keyboard.dispatch": "keyCode",
+        // "keyboard.dispatch": "keyCode",
         "vim.insertModeKeyBindings": [
           {
             "before": ["j", "j"],
             "after": ["<Esc>"]
           }
         ],
-        "vim.leader": "<space>",
+        // "vim.leader": "<space>",
         "vim.handleKeys": {
           "<C-a>": false,
           "<C-f>": false
@@ -50,11 +50,11 @@
       },
       "extensions": [
         "golang.go",
+        "vscodevim.vim",
         "github.copilot",
         "ms-python.python",
         "redhat.vscode-yaml",
         "esbenp.prettier-vscode",
-        "mtunique.vim-fcitx-remote",
         "ms-azuretools.vscode-docker",
         "github.vscode-pull-request-github",
         "ms-vscode-remote.remote-containers",
@@ -77,7 +77,8 @@
         "version": "latest",
         "dockerDashComposeVersion": "v2"
     },
-    "ghcr.io/devcontainers-contrib/features/localstack:2": {},
+    "ghcr.io/devcontainers-contrib/features/kind:1": {}
+    // "ghcr.io/devcontainers-contrib/features/localstack:2": {},
   },

Edit: Should laso mention that I noticed my .github folder was repetitively nested like 12 deep, and errors stopped when a “git submodule update --init --recursive” resolved

1 Like