- Test github connection on your laptop using
ssh -T git@github.comyou will get response
Warning: Permanently added the ECDSA host key for IP address '140.82.116.4' to the list of known hosts.
Hi sandys! You've successfully authenticated, but GitHub does not provide shell access.
this is good
-
on your laptop, run ssh-agent using
eval "$(ssh-agent -s)" -
on your laptop, run ssh-add (if you have many keys, you will have to choose the right one or add all of them).
ssh-add /home/sss/.ssh/id_ed25519 -
then ssh to server using "-A" flag.
ssh -A sss@34.82.189.191 -
once you are on the server, run tmux (see above). like
tmux new-session -A -s sss1 -
now try again,
ssh -T git@github.com
- you should see the same successful message as above inside tmux
Hi sandys! You've successfully authenticated, but GitHub does not provide shell access.
if you have failed, you will see the following message
git@github.com: Permission denied (publickey).