- Create a passphrase protected ssh key.
> ssh-keygen -b 2048 -t rsa
- Add an
ssh-agentto your session startup. (ie. SSHKeychain on Mac OS)
- Whenever you start a session add your ssh key to your agent. (ie. ssh-add)
- Make sure your agent follows you.
sshto a server and put your public key in the
authorized_keysfile. (ie. ssh-add -L > ~/.ssh/authorized_keys)
- Fix the permissions, just in case. (ie. chmod 600 ~/.ssh/authorized_keys)
- Logout, and try and log back in without a password.