Matt Rae

Random stuff.
Nov 28
Permalink

Easy copying of SSH keys with ssh-copy-id

Quit manually adding keys to authorized_keys, checking permissions on .ssh and user’s home directories. http://www.openssh.org/faq.html#3.14

‘ssh-copy-id’ comes with openssh to make this simple. I’m almost ashamed to admit that I didn’t know about it until today.. Anyway, I figured somebody might be in the same boat, so listen to how easy it is to add your key to an account.

 $ ssh-copy-id hostname

It should be that easy.

Comments (View)
blog comments powered by Disqus