mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
573 B
Plaintext
22 lines
573 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ssh-copy-id
|
|
|
|
> Install your public key in a remote machine's authorized_keys.
|
|
> More information: <https://manned.org/ssh-copy-id>.
|
|
|
|
- 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}}`
|