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.

# Come up with a password.
#Make a key
ssh-keygen -t ed25519 -a 100 -f ~/.ssh/dreyfus2github

# type the password twice, or enter blank twice.

#Go to your github settings page
https://github.com/settings/keys
#Open the public key in a text editor
edit ~/.ssh/dreyfus2github.pub

#Copy paste the contents into the box on the page
# Update your SSH config
[~.ssh/config]
host github.com
user git
identityfile ~/.ssh/dreyfus2github

# add your key to your ssh-agent
ssh-add ~/.ssh/dreyfus2github

# then 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.