Skip to content

Instantly share code, notes, and snippets.

@akhilome
Last active September 5, 2019 12:21
Show Gist options
  • Save akhilome/f6804c812b245e1b798493cf6ce922a5 to your computer and use it in GitHub Desktop.
Save akhilome/f6804c812b245e1b798493cf6ce922a5 to your computer and use it in GitHub Desktop.
Generate and add github ssh to linux machine

First run ...

ssh-keygen -t rsa -b 4096 -C 'email@domain.com'

... from terminal, then run ...

eval "$(ssh-agent -s)"

... then run ...

ssh-add ~/.ssh/id_rsa

then copy the content of ~/.ssh/id_rsa.pub and add it to github under Settings >> SSH and GPG keys >> New SSH key,

then run ...

ssh -T git@github.com

and confirm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment