SSH Tips and Tricks
ssh X to log in, of course but:
- ssh-keygen to create an SSH keypair
- ssh-copy-id <server> to copy the keypair over
- Now you can login using the ssh key – if you have no password setup you will need no password to log in.
- If you rebuild the server you will get warnings of host identification has changed. To remove something from the ‘known hosts’ file use ssh-keygen -R hostname
(These notes are mainly just for me, but if they help someone else out, all the better!)
