Describe the Bug
Im using the anysphere.remote-ssh extension.
When I try to connect to a remote instance (via opening a new Cursor window), it tells me to input the password. But I have already setup public key: i have public and private key on my local side, and i have already put the public key onto the remote instance.
This is a part of the extension output:
2025-07-22 14:54:12.463 [info] (ssh_tunnel) stderr: debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
2025-07-22 14:54:12.465 [info] (ssh_tunnel) stderr: debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /Users/<my-user-name>/.ssh/id_rsa RSA SHA256:OozJJhs4wXrlAOi8aGtQaJHbII8+L54JgHS25At1Qj8 explicit
debug1: Offering public key: /Users/<my-user-name>/.ssh/id_rsa RSA SHA256:OozJJhs4wXrlAOi8aGtQaJHbII8+L54JgHS25At1Qj8 explicit
2025-07-22 14:54:12.497 [info] (ssh_tunnel) stderr: debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
Here, the “Will attempt key” and “Offering public key” seem to have the same key. It should be successful. But it does not.
However, this issue does not occur consistently.
Another coworker of mine successfully ssh connected, with the following output:
2025-07-22 18:16:33.363 [info] (ssh_tunnel) stderr: debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
2025-07-22 18:16:33.367 [info] (ssh_tunnel) stderr: debug1: get_agent_identities: bound agent to hostkey
2025-07-22 18:16:33.367 [info] (ssh_tunnel) stderr: debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /Users/<coworker-name>/.ssh/id_rsa RSA SHA256:NedUXJMl/lCcJZEeRqhpymWdvkS8ZuAvc4V14jJEVV0 explicit
2025-07-22 18:16:33.367 [info] (ssh_tunnel) stderr: debug1: Offering public key: /Users/<coworker-name>/.ssh/id_rsa RSA SHA256:NedUXJMl/lCcJZEeRqhpymWdvkS8ZuAvc4V14jJEVV0 explicit
2025-07-22 18:16:33.402 [info] (ssh_tunnel) stderr: debug1: Server accepts key: /Users/<coworker-name>/.ssh/id_rsa RSA SHA256:NedUXJMl/lCcJZEeRqhpymWdvkS8ZuAvc4V14jJEVV0 explicit
2025-07-22 18:16:33.457 [info] (ssh_tunnel) stderr: Authenticated to 127.0.0.1 ([127.0.0.1]:8000) using "publickey".
Here, after “Will attempt key” and “Offering public key”, it has “Server accepts key”.
Steps to Reproduce
See attached image for the screenshot: remote cursor window required password.
Screenshots / Screen Recordings
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Cursor version: 1.2.4
Additional Information
SSH Remote version: 1.0.22
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
