1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 17:38:29 +01:00
tldr/pages/linux/ssh-copy-id.md
2016-01-08 09:38:59 +01:00

341 B

ssh-copy-id

Install your public key in a remote machine's authorized_keys.

  • Copy the given public key to the remote:

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

  • Copy the given public key to the remote with specific port:

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