ssh with keys on OSX

source: virtualDennis

1
cat ~/.ssh/id_rsa.pub | ssh [email protected] "cat - >> ~/.ssh/authorized_keys"

If you do not have :  ~/.ssh/id_rsa.pub  then you have not generated keys on your machine.

1
ssh-keygen -t

DON’T FORGET THE PASSPHRASE !