Skip to content

Instantly share code, notes, and snippets.

@donrestarone
Last active April 18, 2020 01:24
Show Gist options
  • Save donrestarone/23850111d1e0343e80c7fe16b5586a90 to your computer and use it in GitHub Desktop.
Save donrestarone/23850111d1e0343e80c7fe16b5586a90 to your computer and use it in GitHub Desktop.
a simple script for generating rsa keypair for github on your raspberry pi
ssh-keygen -t rsa -b 4096 -C "yourGithubEmailHere"
# hit enter when it asks where to save. This will save it to the default location which is /home/pi/.ssh
cat /home/pi/.ssh/id_rsa.pub
#copy the output of the above and paste it to Github's SSH keys section of your account
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment