DEV Community

Discussion on: Things I want to remember about SSH

Collapse
 
moopet profile image
Ben Sinclair

You can also copy your public key to a remote server's authorized_keys file using ssh-copy-id which is available on most systems. I think it didn't used to be installed on MacOS but am pretty sure it's there in the newer versions.

Collapse
 
manoharvoggu profile image
Voggu Manohar Reddy

It's available in MacOS too :)

Collapse
 
ferricoxide profile image
Thomas H Jones II

Suuuuuuuper useful if your in an org that demands keys be rotated frequently (but don't have PKI-enabled SSHDs on the target systems).

Collapse
 
djangotricks profile image
Aidas Bendoraitis

Thanks for the note. I didn't know about it.

Collapse
 
djangotricks profile image
Aidas Bendoraitis

Just for others to see, the syntax of this tool is as follows:

$ ssh-copy-id -i ~/.ssh/examplecom_id_rsa the_user@example.com