Setup GitHub SSH

Here's how to fix your connection to GitHub.

This assumes your computer is called Dreyfus, you should change this to something else.

  1. Come up with a password.
  2. Make a key

    ssh-keygen -t ed25519 -a 100 -f ~/.ssh/dreyfus2github

  3. type the password twice, or enter blank twice.
  4. Go to your github settings page

  5. Open the public key in a text editor

    edit ~/.ssh/

  6. Copy paste the contents into the box on the page
  7. Update your SSH config
user git
identityfile ~/.ssh/dreyfus2github
  1. add your key to your ssh-agent ssh-add ~/.ssh/dreyfus2github

  2. Try it out with

> ssh
Hi YourName! You've successfully authenticated, but GitHub does not provide shell access.
Connection to closed.

Please send questions or comments to