ssh-copy-id is a great little bash script. Basically, you run:
ssh-copy-id myuser@someserver.comAnd ssh-copy-id will copy your public key into the authorized_keys file of your user on that remote system. From now on when you ssh to that system, you won’t need to enter a password.
The only problem is, the site that used to host the ssh-copy-id script has gone down. I can’t find it anywhere any more. So… I’m going to put it up here! Enjoy!
To install ssh-copy-id on Linux or Mac:
sudo wget http://blog.christopherpitzer.com/wp-content/uploads/ssh-copy-id -O /usr/bin/ssh-copy-id sudo chmod +x /usr/bin/ssh-copy-id
That’s it. Have fun. Here are the docs if you’d like some more reading.
Recent Comments