Skip to content

Instantly share code, notes, and snippets.

@sageworksstudio
Last active July 9, 2020 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sageworksstudio/1d72163fbd00c3ade2392b4e0bb077e6 to your computer and use it in GitHub Desktop.
Save sageworksstudio/1d72163fbd00c3ade2392b4e0bb077e6 to your computer and use it in GitHub Desktop.
Generating a public/private RSA key pair.

Generating RSA keys

On a Mac or other Unix-like system, locate your ~/.ssh directory and from that directory run this in the command line:

ssh-keygen -t rsa -b 4096 -C "your_comment"

-t = type (The possible values are 'dsa', 'ecdsa', 'ed25519', or 'rsa')

-b = bits

-C = comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment