mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 00:55:22 +00:00
Update cheatsheets
This commit is contained in:
21
ssh-copy-id
Normal file
21
ssh-copy-id
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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}}`
|
||||
Reference in New Issue
Block a user