connecting to GitHub with SSH Generate a new SSH key ssh-keygen -t rsa -b 4096 -C "[email protected]" Add your SSH key to the ssh-agent Edit the ~/.ssh/config file Host github.com AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_rsa Start the ssh-agent in the background eval "$(ssh-agent -s)" > Agent pid 59566 Add your SSH private key to the ssh-agent ssh-add --apple-use-keychain ~/.ssh/id_rsa Add your SSH key to your GitHub account Copy the SSH key to your clipboard pbcopy < ~/.ssh/id_rsa.pub Go to GitHub > Settings > Access > SSH and GPG keys > New SSH key Paste the SSH key to the key field Click Add SSH key Authorizing an SSH key for use with SAML single sign-on Go to GitHub > Settings > Access > SSH and GPG keys Click Configure SSO Click Authorize