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