Information Technology Reference
In-Depth Information
To use key-based authentication, you have to upload your public key to your ac-
count. Copy the contents of your public key stored in
∼
/.ssh/id_rsa.pub
onto
the clipboard. If you work on Windows you can use the following command:
$ clip <
∼
/.ssh/id_rsa.pub
Readers working on other systems can open the file with their favorite text editor
and use the edit/copy commands.
Go to your Github account settings, open the
SSH Keys
menu option, and then press
the
Add SSH key
button. When you see a form titled
Add an SSH Key
, paste the con-
tents of your clipboard into the form. Then press the
Add key
button. The process of
adding an SSH key is illustrated in
Figure 12-1
. Follow the arrows labeled A, B, C, D,
and E. When you have finished, the uploaded key will be listed under SSH Keys, as
shown in
Figure 12-2
.
Figure 12-1
.
Adding a new SSH key on Github account