Skip to content

Instantly share code, notes, and snippets.

@felipekm
Created July 22, 2020 19:40
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 felipekm/e54e26706c1a6f3199ebc1d343609ccb to your computer and use it in GitHub Desktop.
Save felipekm/e54e26706c1a6f3199ebc1d343609ccb to your computer and use it in GitHub Desktop.
Github set ssh keys steps Linux

Generating a new SSH key and adding it to the ssh-agent

ssh-keygen -t rsa -b 4096 -C "your_email@example.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa

Adding a new SSH key to your GitHub account

sudo apt-get install xclip xclip -sel clip < ~/.ssh/id_rsa.pub

Testing your SSH connection

ssh -T git@github.com

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