This is a reminder to myself that not only is it possible to pipe across ssh it makes it easy to do things such as add your public key to the authorized keys file on a remote server.
ssh server 'mkdir -p .ssh && chmod 700 .ssh'
cat ~/.ssh/id_dsa.pub | ssh server 'cat >> .ssh/authorized_keys'
ssh server chmod 600 .ssh/authorized_keys