Skip to content

Instantly share code, notes, and snippets.

@Alfian878787
Forked from donrestarone/github-rsa-keygen.sh
Created March 17, 2020 17:41
Show Gist options
  • Save Alfian878787/8c9e72b2e80d63392d357efb7c208329 to your computer and use it in GitHub Desktop.
Save Alfian878787/8c9e72b2e80d63392d357efb7c208329 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
@Alfian878787
Copy link
Author

<script src="https://gist.github.com/Alfian878787/8c9e72b2e80d63392d357efb7c208329.js"></script>

@Alfian878787
Copy link
Author

<script src="https://gist.github.com/Alfian878787/8c9e72b2e80d63392d357efb7c208329.js"></script>

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