1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:42:09 +02:00
tldr/pages/common/ssh-copy-id.md
2017-02-25 17:49:50 +05:30

15 lines
422 B
Markdown

# ssh-copy-id
> Install your public key in a remote machine's authorized_keys.
- Copy your keys to the remote machine:
`ssh-copy-id {{username@remote_host}}`
- 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}}`