Cethy
Cethy

Reputation: 1636

SSH agent forwarding configured and (seems to be) working but github still asks for user & password

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

Answers (1)

Chris
Chris

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

Related Questions