ssh-copy-id
SafeInstall your SSH key
ssh-copy-id <user>@<host>
Appends your public key to the remote authorized_keys with correct permissions — no more hand-copy mistakes.
Examples
ssh-copy-id -i ~/.ssh/id_ed25519.pub admin@srv01Install a specific key
Syntax
ssh-copy-id [-i keyfile] user@host
Before you run it
Appends a key only.
Related commands
- ssh-keygenGenerate SSH keys
- sshRemote shell
- chmodChange permissions
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store