SysAdmin's Journey

QuickTip: Make Life Easier With Ssh-copy-id

How many times have you ran through this series of events?

$ cat ~/.ssh/id_dsa.pub
...copy output to clipboard...
$ ssh myhost
...enter password...
myhost$ vi ~./ssh/authorized_keys
...paste public key and save...
myhost$ exit

Thanks to bash’s tab completion, I happened upon ssh-copy-id. Instead of all that above, just do this:

$ ssh-copy-id myhost
...enter password...

You’re done!

Comments