Skip to content

Instantly share code, notes, and snippets.

@abelcallejo
Last active July 15, 2019 06:02
Show Gist options
  • Save abelcallejo/3d4a61fc2fc241006b5d22894c6d0772 to your computer and use it in GitHub Desktop.
Save abelcallejo/3d4a61fc2fc241006b5d22894c6d0772 to your computer and use it in GitHub Desktop.
Generating SSH keys

Generating SSH keys

Shell

Generating private and public keys

ssh-keygen -t rsa -b 4096 -q -f "/home/bill/.ssh/id_rsa" -N ""

Generating PEM file

cp "/home/bill/.ssh/id_rsa" "/home/bill/bill.pem"

Registering the public key

cat /home/bill/.ssh/id_rsa.pub >> /home/bill/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment