Download: upyerssh.zip
Downloading: upyerssh.zip SSHKey tricks (password-less remote login with keys)
It's really 1 command - 2 if you don't already have a key.
If you *don't* have a key already, create one with:
ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ""
This (quietly -q) creates an RSA-2048 key in the usual place with NO passphrase on the key (-N "" provides an empty string for the new passphrase).
Once you have a key, you only need to run a command like this to push it to a remote machine:
cat ~/.ssh/id_rsa.pub | ssh ${REMOTE_USER}@${REMOTE_HOST}
where ${REMOTE_USER} is your login name and ${REMOTE_HOST} is a machine name or IP address of the remote machine (like myserver.uvic.ca).
I wrote a slightly more interactive script that does this for you. It's in the Utils repo as well, but I've attached a snapshot version to this post.