tldr/pages/linux/ssh-copy-id.md

12 lines
341 B
Markdown
Raw Normal View History

2016-01-02 00:19:38 +00:00
# ssh-copy-id
> Install your public key in a remote machine's authorized_keys.
- Copy the given public key to the remote:
2016-01-02 00:19:38 +00:00
`ssh-copy-id -i {{path/to/certificate}} {{username}}@{{remote_host}}`
- Copy the given public key to the remote with specific port:
2016-01-02 00:19:38 +00:00
`ssh-copy-id -i {{path/to/certificate}} -p {{port}} {{username}}@{{remote_host}}`