Expanded on the manual method of copying the public key.
parent
630ceec2b1
commit
695aeb2ee9
|
@ -17,10 +17,14 @@ eval "$(ssh-agent -s)"
|
||||||
ssh-add ~/.ssh/id_rsa
|
ssh-add ~/.ssh/id_rsa
|
||||||
```
|
```
|
||||||
## Add key to Github
|
## 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
|
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:**
|
**After:**
|
||||||
1. In the upper-right corner of any page, click your profile photo, then click Settings.
|
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.
|
2. In the user settings sidebar, click SSH and GPG keys.
|
||||||
|
|
Loading…
Reference in New Issue