1
0
mirror of https://github.com/cheat/cheat.git synced 2024-12-22 12:45:06 +01:00
cheat/cheatsheets/ssh-keygen
2013-08-22 11:34:11 +10:00

12 lines
258 B
Plaintext

# To generate an SSH key:
ssh-keygen -t rsa
# To generate a 4096-bit SSH key:
ssh-keygen -t rsa -b 4096
# 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