Expanded on the manual method of copying the public key.

Matias Barcenas 2018-03-14 17:24:01 -05:00
parent 630ceec2b1
commit 695aeb2ee9
1 changed files with 5 additions and 1 deletions

@ -17,10 +17,14 @@ eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
```
## Add key to Github
The easiest way to copy the contents of the public key to your clipboard is to use xclip, but you can also do it manually.
The easiest way to copy the contents of the public key to your clipboard is to use xclip.
```
xclip -sel clip < ~/.ssh/id_rsa.pub
```
To manually copy the contents to the clipboard, do the following.
```
gedit ~/.ssh/id_rsa.pub # Select everything, right-click, & copy.
```
**After:**
1. In the upper-right corner of any page, click your profile photo, then click Settings.
2. In the user settings sidebar, click SSH and GPG keys.