Last active
December 29, 2020 17:25
-
-
Save morgenfriedel/092f7f532fadcb5d5a452854e366ac74 to your computer and use it in GitHub Desktop.
Generate your first SSH key. Run with $ ./first-ssh-key.sh followed by your email address.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| ssh-keygen -t rsa -b 4096 -C "$1" | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh/id_rsa | |
| xclip -sel clip < ~/.ssh/id_rsa.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment