2016-01-02 00:19:38 +00:00
|
|
|
# ssh-copy-id
|
|
|
|
|
|
|
|
> Install your public key in a remote machine's authorized_keys.
|
2021-10-04 13:39:50 +01:00
|
|
|
> More information: <https://manned.org/ssh-copy-id>.
|
2016-01-02 00:19:38 +00:00
|
|
|
|
2016-10-21 19:45:02 +01:00
|
|
|
- Copy your keys to the remote machine:
|
|
|
|
|
|
|
|
`ssh-copy-id {{username@remote_host}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- 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}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- 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}}`
|