- ssh-keygen -t rsa
- accept the default filename
- press enter for a blank password
- a private (id_rsa) and public key (id_rsa.pub) will be created
- copy the public key to the server
- cat id_rsa.pub >> ~/.ssh/authorized_keys
- chmod 700 ~/.ssh
- chmod 644 ~/.ssh/authorized_keys
See also this and this.
(Upon error "Agent admitted failure to sign using the key", log out of the client and log back in again to fix).