Skip to content

Instantly share code, notes, and snippets.

@codenathan
Last active September 9, 2023 17:25
Show Gist options
  • Save codenathan/6ee14cbf94b5cf255602370054b0681f to your computer and use it in GitHub Desktop.
Save codenathan/6ee14cbf94b5cf255602370054b0681f to your computer and use it in GitHub Desktop.

Prerequisites

  • Install Git either via Homebrew using brew install git or download the binary installerr https://git-scm.com/

Generate SSH

Open Bash and run following commands

Sometimes the .ssh folder may not get created

mkdir ~/.ssh

Replace your_email@example.com with github profile email

ssh-keygen -t ed25519 -C "your_email@example.com"
clip < ~/.ssh/id_ed25519.pub
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519

Authenticate to GitHub

Go To Github Settings and add SSH keys https://github.com/settings/keys

Back in Command Line

ssh -T git@github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment