Monday, November 21, 2011

Copy SSH Key to Server in one command

Use this technique to copy the SSH key and add it to the authorized_keys file in one command
ssh-copy-id -i .ssh/id_dsa.pub username@remotehost

Pop in your password and you're done.

No comments: