Create SSH key Link to heading

ssh-keygen -o -t rsa -C "any comment"

  • The -o flag forces the tool to generate SSH keys with the OpenSSH format.
  • The -t flag specifies the type of SSH keys to create.
  • The -C flag allows for comments that get added as metadata at the end of the public key.
  • Key generated to ~/.ssh folder

View SSH key Link to heading

cat ~/.ssh/id_rsa.pub

Copy public key to Github Link to heading

Copy output into Github > Settings > SSH and GPG keys > New SSH Key