cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Cannot authenticate github with agent forwarding ssh key

Open chigozienri opened this issue 2 years ago • 8 comments

When I connect to a remote machine with agent forwarding, I cannot use my local ssh keys to authenticate github.

~/.ssh/config looks like:

Host my-remote
    HostName my-remote-url
    User my-user
    ForwardAgent yes

Settings are fully inherited from VS Code, including:

"remote.SSH.enableAgentForwarding": true

I connect to the remote machine with Open Remote - SSH (bundled with Cursor)

When I try to pull/push a github repo, I get: Github failure message

The same procedure on VS Code lets me authenticate to github.

ssh -vT [email protected] also fails on the remote machine on Cursor but is successful on VS Code.

chigozienri avatar Dec 03 '23 19:12 chigozienri

When I connect to a remote machine with agent forwarding, I cannot use my local ssh keys to authenticate github.

~/.ssh/config looks like:

Host my-remote
    HostName my-remote-url
    User my-user
    ForwardAgent yes

Settings are fully inherited from VS Code, including:

"remote.SSH.enableAgentForwarding": true

I connect to the remote machine with Open Remote - SSH (bundled with Cursor)

When I try to pull/push a github repo, I get: Github failure message

The same procedure on VS Code lets me authenticate to github.

ssh -vT [email protected] also fails on the remote machine on Cursor but is successful on VS Code.

same here, anyone knows why this fails in Cursor and not in VS Code natively? And how to fix it?

eherrerosj avatar Aug 23 '24 11:08 eherrerosj

So, same problem here. Are there any updates on this?

kharitonov-ivan avatar Sep 03 '24 17:09 kharitonov-ivan

same problem here.

cyenxchen avatar Sep 11 '24 01:09 cyenxchen

same here

bakud avatar Mar 05 '25 06:03 bakud

same here

yuwen01 avatar Jun 12 '25 23:06 yuwen01

Aggghhh why did Cursor break this? It seems to be overriding $SSH_AUTH_SOCK so nothing I do will forward the agent into the Cursor terminal. The plugins like Github Pull Requests work though but I can't use any git CLI commands :`-(

noland-certn avatar Jul 30 '25 23:07 noland-certn

is a fix on the roadmap ?

j3zz3r avatar Nov 13 '25 13:11 j3zz3r

same here

ronansgd avatar Nov 14 '25 14:11 ronansgd