Skip to content

Instantly share code, notes, and snippets.

@profiprog
Last active October 17, 2020 08:56
Show Gist options
  • Save profiprog/1dd48b431e5f03bfbc852371fa7a2885 to your computer and use it in GitHub Desktop.
Save profiprog/1dd48b431e5f03bfbc852371fa7a2885 to your computer and use it in GitHub Desktop.
Generate SSH Keys

== Generate new SSH key:

COMMENT="Here put your comment like 'email' or 'username@hostname'"
ssh-keygen -t rsa -b 4096 -C "$COMMENT" -N ''

Private key will be strored in ~/.ssh/id_rsa and public key in ~/.ssh/id_rsa.pub

Note: If you are using windows you kan use putty.

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