From 691f94bcbc0f57c430e3aec2c862574c59563aa2 Mon Sep 17 00:00:00 2001 From: ingenarel Date: Tue, 17 Dec 2024 11:14:17 +0600 Subject: [PATCH] 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. --- github.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/github.md b/github.md index 1d3d9cb0..75bcc0c7 100644 --- a/github.md +++ b/github.md @@ -26,6 +26,16 @@ But you can still use `check50` and `submit50`! You just need to log in a bit di 1. Paste your public key into the text box under **Key**. Optionally input a title under **Title** (e.g., `CS50`). 1. Click **Add SSH Key**. 1. Execute `ssh -T git@ssh.github.com -p 443`. +1. If it says `git@ssh.github.com: Permission denied (publickey).` make sure that your `~/.ssh/config` file has this: + ``` + Host ssh.github.com + User git + Hostname ssh.github.com + PreferredAuthentications publickey + IdentityFile ~/.ssh/id_rsa + Port 443 + IdentitiesOnly yes + ``` 1. Enter "yes" and press enter if you see the following prompt (the IP address might be different): ``` The authenticity of host '[ssh.github.com]:443 ([140.82.113.35]:443)' can't be established.