Skip to content

Commit f48695e

Browse files
committed
Doc: Update github ssh tutorial
1 parent 225451d commit f48695e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

github_ssh.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can connect and authenticate to remote serves such as GitHub without supplyi
1111
$ ls -al ~/.ssh
1212
```
1313

14-
This lists all your available `SSH` keys. Check to see if you have an public `SSH` key. The file naming, by default, could be as follows:
14+
This lists all your available `SSH` keys. Check to see if you have a public `SSH` key. The file naming, by default, could be as follows:
1515

1616
```
1717
id_rsa.pub
@@ -50,7 +50,7 @@ $ ssh-add ~/.ssh/id_rsa
5050

5151
## Adding your `SSH` key to your GitHub account
5252

53-
Copy your `ssh` key to your clipboard [ctrl + shift + C from your terminal]. **Make sure not to add newlines or whitespaces while you copy to the clipboard** as shown below:
53+
Copy your `ssh` key to your clipboard (ctrl + shift + C from your terminal). **Make sure not to add newlines or whitespaces while you copy to the clipboard** as shown below:
5454

5555
```python
5656
$ sudo apt install xclip
@@ -64,7 +64,9 @@ This copies the content of the _id_rsa.pub_ file to your clipboard. You can subs
6464

6565
<br>
6666

67-
_If this method does not work for you, consider doing the following:_
67+
## Short and Easy Method
68+
69+
_If the method above does not work very well for you, consider doing the following:_
6870

6971
1. Generate SSH key using:
7072
```python
@@ -73,6 +75,9 @@ _If this method does not work for you, consider doing the following:_
7375
2. Copy the output of the command below to your clipboard:
7476
```python
7577
$ cat ~/.ssh/id_rsa.pub
78+
79+
# This will display the key in your terminal
80+
# Make sure not to add newlines or whitespaces
7681
```
7782
3. Paste the above-copied output to the form at https://github.com/settings/ssh/new.
7883
<br>

0 commit comments

Comments
 (0)