Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Computer A, I have a public and private key for my github account. When I use this machine directly, using a connected keyboard and display, I can do all the git remote repo commands, like git pull and git push, as well as ssh -vv All this works and uses the proper ssh keypair.

But if I log into Computer A from Computer B, and then try the same stuff as above, I can't seem to get the same ssh keys to work with GitHub's servers. There is absolutely no difference here, except that I am controlling Computer A via an ssh connection, rather than directly via the computer's keyboard.

What's going on here exactly, and how can I learn more about it?

share|improve this question

I'd say it's possible that you've got agent forwarding enabled on your connection from Computer B which results in keys on B overriding keys on A.

Github has documentation describing how you can use ssh -T on their servers to check your connection. Use ssh -T -vvv to see what's going on and which keys are being pulled.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.