Skip to content

docs: added ssh config file in case ssh connection doesn't set up properly #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions github.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] -p 443`.
1. If it says `[email protected]: 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.
Expand Down