You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: github_ssh.md
+8-3
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ You can connect and authenticate to remote serves such as GitHub without supplyi
11
11
$ ls -al ~/.ssh
12
12
```
13
13
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:
15
15
16
16
```
17
17
id_rsa.pub
@@ -50,7 +50,7 @@ $ ssh-add ~/.ssh/id_rsa
50
50
51
51
## Adding your `SSH` key to your GitHub account
52
52
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:
54
54
55
55
```python
56
56
$ sudo apt install xclip
@@ -64,7 +64,9 @@ This copies the content of the _id_rsa.pub_ file to your clipboard. You can subs
64
64
65
65
<br>
66
66
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:_
68
70
69
71
1. Generate SSH key using:
70
72
```python
@@ -73,6 +75,9 @@ _If this method does not work for you, consider doing the following:_
73
75
2. Copy the output of the command below to your clipboard:
74
76
```python
75
77
$ cat ~/.ssh/id_rsa.pub
78
+
79
+
# This will display the key in your terminal
80
+
# Make sure not to add newlines or whitespaces
76
81
```
77
82
3. Paste the above-copied output to the form at https://github.com/settings/ssh/new.
0 commit comments