Reputation: 1636
I followed the github guide (https://help.github.com/articles/using-ssh-agent-forwarding) to ssh agent forwarding.
$ ssh -T [email protected]
Attempt to SSH in to github
Hi username! You've successfully authenticated, but GitHub does not provide
shell access.
This command works on both local & server. But when I try a git pull (or other github related command), on the server, it still asks me for my login & password.
Is the problem could come from that I don't use the same username on local & the server ? Or did I miss something else ?
Upvotes: 1
Views: 263
Reputation: 136948
SSH agents only affect remotes that use the SSH transport.
Make sure your remotes are configured as [email protected]:user/repo.git
, not https://github.com/user/repo.git
.
Upvotes: 1