Cheap SSH key tricks

Of course, most will know how to generate new SSH keys for passwordless entry like so:

ssh-keygen -t rsa

But I always want to add the key to the remote server first and then ssh in. So, I do this:

cat ~/.ssh/id_rsa.pub | ssh root@server.me "cat >> ~/.ssh/authorized_keys"