Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 git@github.com. 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.