git github ssh - Forest0923/memo GitHub Wiki
Add new SSH key to github
System
- Ubuntu 18.04
- git version 2.17.1
- xclip version 0.12
Generating SSH key
- Set key name as
id_rsa_github
.
ssh-keygen -t rsa -b 4096
Adding to ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa_github
Adding to GitHub account
xclip -sel clip < ~/.ssh/id_rsa_github.pub
Reference: