Last active
June 30, 2021 12:26
-
-
Save epreston/bcce32e6cb2bbd34f013c891e33c2968 to your computer and use it in GitHub Desktop.
generate a new 4096 bit SSH key that uses RSA algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate new 4096 bit RSA SSH key: | |
# --- Only use when ed25519 isnt possible --- | |
ssh-keygen -o -a 100 -t rsa -b 4096 -f ~/.ssh/id_rsa -C "login@hostname.com" | |
# -o : Save the private-key using the new OpenSSH format rather than the PEM format | |
# -a: Increase resistance to brute-force password cracking if the private-key is stolen. | |
# -t: Type of key to create (rsa). | |
# -f: Filename of the generated key file. | |
# -C: Optional comment, often <login>@<hostname> or email. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment