SSH into Linux works on VS Code but not Cursor

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/
	at /Applications/
	at authHandler (/Applications/
	at Ee (/Applications/
	at USERAUTH_FAILURE (/Applications/
	at 51 (/Applications/
	at e.exports.U (/Applications/
	at U.decrypt (/Applications/
	at e.exports.F [as _parse] (/Applications/
	at e.exports.parse (/Applications/
	at Socket.<anonymous> (/Applications/
	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:

  HostName <IP_ADDRESS>
  User ec2-user
  IdentityFile ~/.ssh/cursor.pem 

Instance is running Amazon Linux2

1 Like

I have the same issue. Just wrote about it at Error connecting to Remote SSH · Issue #1027 · getcursor/cursor · GitHub
Anyone knows a workaround?