ssh-copy-id user@server-ip

Category: Self-Hosting

ssh-copy-id user@server-ip

Copy your local public key to a remote server's authorized_keys — enables passwordless SSH login

Copies your local public key to the remote server's ~/.ssh/authorized_keys file. After this, you can SSH in without a password.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.