Aug 03 2007
ssh-copy-id
Linux/Unix is great. You learn something new just about every day.
I found a script called ssh-copy-id that when run with the format of:
ssh-copy-id remotelogin@remotehost.com
will take the RSA public key (~/.ssh/id_rsa.pub) of the ID on the current host, and set it up under authorized_keys for “remotelogin@remotehost.com”. This allows for passwordless, key-based authentication–all set up in one command!
It’s normally a pretty trivial task anyway, but using SCP to ship it over and moving or concatenating the file in place gets old after a few dozen times.
Small and useful utilities like these make my day easier!
[...] to thispost I’ve discovered ssh-copy-id. I’ve thought about putting a quick script like this myself [...]