ssh-copy-id -i ~/.ssh/mykey.pub user@host

Category: SSH & Remote

ssh-copy-id -i ~/.ssh/mykey.pub user@host

Copy a specific public key to remote host

Copies a specific public key to a remote server's authorized_keys file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.