Basics
- https://www.ssh.com/academy/ssh/public-key-authentication
- https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Public_Key_Authentication
Cheatsheet
- Create new key:
ssh-keygen
- Add key to remote server by password:
ssh-copy-id
- Add key to local agent:
ssh-add
- Remove conflicting host key:
ssh-keygen -R
- Use local ssh agent connection from remote system:
ssh -A
- File with keys:
~/.ssh/authorized_keys