Skip to main content

ssh

PLEASE NOTE: I am in the process of making my notes public. This docs section is still work in progress. It currently is a summary of random tips for various things.
Found a mistake? Want to add something? Feel free to open an issue, send a pull request or an e-mail.

General info:
Homepage
Wikipedia
Source code
Documentation
Manual
Usefull links:
Blog posts
Fandom Wiki

ssh-add - Key management

Add key to agent:
ssh-add ~/.ssh/yourprivatekey
Show list of added public keys:
ssh-add -L
Remove all keys from agent:
ssh-add -D

Adding public key to remote server

ssh-copy-id -i ~/.ssh/mykey.pub user@remoteserver

Troubleshooting

Using -v flags for verbose output:: ssh user@remoteserver -vvv
Check logs on remote server:
sudo tail -f /var/log/auth.lo

Miscellaneous

Create ssh tunnel through known host:
ssh -t tunnel@server ssh destination@server
Use command from text file on remote server:
ssh -t user@host < cmd.txt
ssh host -l user $(<cmd.txt)

E-Mail hellofoo@ittafoovern.comcom

TODO:
placeholder