keygen
ssh-keygen -t rsa -b 2048
choose an empty passphrase and the default file locations.
remote login
copy $HOME/.ssh/id_rsa.pub
to the remote host $HOME/.ssh/authozized_keys
cat ~/.ssh/id_rsa.pub | ssh user@host "cat >> .ssh/authorized_keys
when everything worked, this is the last time you need to enter you password when sshing to user@host
.