I have a SSH Config with multiple instances. I can connect to some remote instances but not others using Cursor. But the same config works with VS Code.
I have tried reinstalling Cursor. I rebooted VM, and put new SSH keys on the host.
Running Cursor on M3 Mac. It’s weird that it works on some instances but not others.
Could be a SSH server config issue, but I’m able to get VS Code to connect to it.
[Info - 17:44:44.53] Resolving ssh remote authority 'ssh-remote+\x56\x49\x56\x45\x4b_\x41\x50\x49_\x42ox' (attemp #1)
[Trace - 17:44:44.63] Identity keys:
ssh-rsa <REDACTED>
/Users/vivek/.ssh/KEY1cer ssh-rsa <REDACTED>
/Users/vivek/.ssh/cursor.pem ssh-rsa <REDACTED>
/Users/vivek/.ssh/github ssh-ed25519 SHA256:<REDACTED>
[Info - 17:44:44.519] Trying no-auth authentication
[Info - 17:44:44.606] Trying publickey authentication: ssh-rsa <REDACTED>
[Info - 17:44:44.721] Trying publickey authentication: /Users/vivek/.ssh/KEY1.cer SSH-RSA <REDACTED>
[Info - 17:44:44.822] Trying publickey authentication: /Users/vivek/.ssh/cursor.pem ssh-rsa <REDACTED>
[Info - 17:44:44.910] Trying publickey authentication: /Users/vivek/.ssh/github ssh-ed25519 SHA256:<REDACTED>
[Error - 17:44:45.143] 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.F [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:514: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 Socket.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Both KEY1.cer
and cursor.pem
pub keys are in ~/.ssh/authorized_keys
on the host I’m trying to connect to.
SSH Config:
Host HOSTNAME
HostName <IP_ADDRESS>
User ec2-user
IdentityFile ~/.ssh/cursor.pem
Instance is running Amazon Linux2