Add a public key to a remote machine's authorized_keys file
Add a public key to a remote machine's authorized_keys file
ssh-copy-id$ ssh-copy-id user@remote.example.com$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote.example.com$ ssh-copy-id -i ~/.ssh/id_rsa.pub -p 2222 user@remote.example.com