Created
November 1, 2024 20:28
-
-
Save markalfred/32cc61ae2e46a950a59ddb3c1914890b to your computer and use it in GitHub Desktop.
GitHub SSH Setup
This file contains 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
echo "===> Installing xcode developer tools..." | |
xcode-select --install | |
echo "===> Generating new SSH key..." | |
echo "" | |
echo "Enter your email:" | |
read email | |
ssh-keygen -t rsa -b 4096 -C $email | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
echo "Add this key to your GH account (copied to clipboard)" | |
cat ~/.ssh/id_rsa.pub | |
pbcopy < ~/.ssh/id_rsa.pub | |
open "https://github.com/settings/keys" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment