Skip to content

Commit 691f94b

Browse files
committed
docs: added ssh config file in case ssh connection doesn't set up properly
i usually have to manually my .ssh/config in arch even after adding the key. added the config to help others that might face the same issue.
1 parent df9616d commit 691f94b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

github.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ But you can still use `check50` and `submit50`! You just need to log in a bit di
2626
1. Paste your public key into the text box under **Key**. Optionally input a title under **Title** (e.g., `CS50`).
2727
1. Click **Add SSH Key**.
2828
1. Execute `ssh -T [email protected] -p 443`.
29+
1. If it says `[email protected]: Permission denied (publickey).` make sure that your `~/.ssh/config` file has this:
30+
```
31+
Host ssh.github.com
32+
User git
33+
Hostname ssh.github.com
34+
PreferredAuthentications publickey
35+
IdentityFile ~/.ssh/id_rsa
36+
Port 443
37+
IdentitiesOnly yes
38+
```
2939
1. Enter "yes" and press enter if you see the following prompt (the IP address might be different):
3040
```
3141
The authenticity of host '[ssh.github.com]:443 ([140.82.113.35]:443)' can't be established.

0 commit comments

Comments
 (0)