Skip to content

Instantly share code, notes, and snippets.

@markalfred
Created November 1, 2024 20:28
Show Gist options
  • Save markalfred/32cc61ae2e46a950a59ddb3c1914890b to your computer and use it in GitHub Desktop.
Save markalfred/32cc61ae2e46a950a59ddb3c1914890b to your computer and use it in GitHub Desktop.
GitHub SSH Setup
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