- ssh-keygen -b 2048 -f mykeyname
- create password
- SSH to remote host
- cd to ~/.ssh
- append contents of public key file (mykeyname_rsa.pub) to ~/.ssh/authorized_keys
- if ssh-agent not running already run eval ssh-agent.
- ssh-add [mykeyname]
- enter password from above