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

    https://github.com/settings/keys

  5. Open the public key in a text editor

    edit ~/.ssh/dreyfus2github.pub

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

  2. Try it out with

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

Please send questions or comments to andrew@aomartin.co.uk.