mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-16 00:48:36 +01:00
To copy a key to a remote host on a non-standard port with non-standard ssh key
This commit is contained in:
parent
437f191bf7
commit
e963af111c
1 changed files with 3 additions and 0 deletions
|
@ -3,3 +3,6 @@ ssh-copy-id username@host
|
||||||
|
|
||||||
# To copy a key to a remote host on a non-standard port:
|
# To copy a key to a remote host on a non-standard port:
|
||||||
ssh-copy-id username@host -p 2222
|
ssh-copy-id username@host -p 2222
|
||||||
|
|
||||||
|
# To copy a key to a remote host on a non-standard port with non-standard ssh key:
|
||||||
|
ssh-copy-id ~/.ssh/otherkey "username@host -p 2222"
|
||||||
|
|
Loading…
Reference in a new issue