I am sshing into a remote server. From the remote server, I want to be able to ssh to github.
I don't want to put my private key on the remote server, because other people have access to the machine.
When I try to ssh to github from the remote server, I get the errors shown here: https://stackoverflow.com/questions/24961682/github-permission-denied-message-even-though-key-has-been-added
I have set the following in ~/.ssh/config
on my local machine, but it's not helping:
Host remoteHost
ForwardAgent yes
Can I set up a new keypair on the remote machine and add this to github? Or will this destroy my ability to ssh into the remote machine from my local machine?
ssh -v $REMOTE_HOST ssh-add -l 2>&1 | grep agent
?