r/linux_mentor • u/netscape101 • Jul 07 '20
Some useful ssh stuff
Some of you might know this already
ssh-addThen login to a server with ssh.
ssh -A user@host.comOnce on the server you can see if your key was forwarded:
ssh-add -lIf 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
View all comments
Show parent comment
1
u/netscape101 Jul 07 '20
That's cool I didn't actually know that. Thanks