Skip to content

Instantly share code, notes, and snippets.

@yveshema
Created September 20, 2020 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yveshema/90f894706f930db18068e341a124b0e8 to your computer and use it in GitHub Desktop.
Save yveshema/90f894706f930db18068e341a124b0e8 to your computer and use it in GitHub Desktop.

Set up your github account to use ssh

Generate ssh key

$ ssh-keygen -t rsa -b 4096 -C "Your_email_address"

This sets up your email address as the key's label for easy identification.

Register key with ssh-agent

$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa

Copy the public key

xclip -sel clip < ~./.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment