First of all, I am not entirely sure if this is a problem with Ubuntu itself, but any insight would be helpful. I use Ubuntu 14.04. I have a git repo cloned over SSH, and normally I have no problems using it. But if I SSH into my machine, I am not able to reach the github server anymore.
1 Answer
Most probably you are using key stored in some non-standard location and added to your gnome-keyring.
Using ssh -A santhosh@localhost will forward the connection to your agent and you will be able to use the same identity withing ssh session.
Other way would be to specify the identity file in your ~/.ssh/config:
Host github.com
IdentityFile path/to/key
-
-
1When you open
seahorse(gnome-keyring), you should see what keys are added there.– JakujeJul 25, 2016 at 19:17

ssh -A santhosh@localhost, for example?