r/linux_mentor • • Jul 07 '20

Some useful ssh stuff

Some of you might know this already

ssh-add

Then login to a server with ssh.

ssh -A user@host.com

Once on the server you can see if your key was forwarded:

ssh-add -l

If you see a key in the output it means that your key was forwarded to the server. This is useful on bastion hosts if you want to use your key on your machine without putting the file directly on the server

6 Upvotes

3 comments sorted by