SSH Login Without Password
Category:
Use this terminal command to copy your public key to the list of authorized keys on a remote server:
ssh-copy-id -i ~/.ssh/id_rsa.pub foo@bar.com
That will copy your public key into the list of authorized keys on the remote server:
~/.ssh/authorized_keys
Now when you SSH in to the remote server, you won't have to enter your password:
ssh foo@bar.com
Be careful. Roger that.