cat $HOME/.ssh/id_rsa.pub | ssh <user>@<host> "mkdir -p .ssh; chmod 700 .ssh; cat >> .ssh/authorized_keys"