mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Resolving a merge-conflict in the 'ssh-keygen' cheatsheet.
This commit is contained in:
commit
15db9d8011
1 changed files with 0 additions and 6 deletions
|
@ -12,9 +12,3 @@ ssh-keygen -p -P old_passphrase -N '' -f /path/to/keyfile
|
||||||
|
|
||||||
# To generate a 4048 bit RSA key with a passphase and comment containing the user and hostname
|
# To generate a 4048 bit RSA key with a passphase and comment containing the user and hostname
|
||||||
ssh-keygen -t rsa -b 4048 -C "$USER@$HOSTNAME" -P passphrase
|
ssh-keygen -t rsa -b 4048 -C "$USER@$HOSTNAME" -P passphrase
|
||||||
|
|
||||||
# To copy a key to a remote host:
|
|
||||||
ssh-copy-id username@host
|
|
||||||
|
|
||||||
# To copy a key to a remote host on a non-standard port:
|
|
||||||
ssh-copy-id username@host -p 2222
|
|
||||||
|
|
Loading…
Reference in a new issue