ssh-copy-id Command Examples

Install your public key in a remote machine's authorized_keys. More information: https://manned.org/ssh-copy-id.

ssh-copy-id {{username}}@{{remote_host}}

ssh-copy-id -i {{path/to/certificate}} {{username}}@{{remote_host}}

ssh-copy-id -i {{path/to/certificate}} -p {{port}} {{username}}@{{remote_host}}