From abe02923693f4fdc54c7225d77ddcb9e3967db89 Mon Sep 17 00:00:00 2001 From: wathsala-vishwajith <64484342+wathsala-vishwajith@users.noreply.github.com> Date: Sat, 17 Dec 2022 07:49:32 +0530 Subject: [PATCH] Update github.md Added the ssh-agent and ssh-add process as mentioned in the github documentation. https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent --- github.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github.md b/github.md index 71e05d17..138dbc13 100644 --- a/github.md +++ b/github.md @@ -16,6 +16,8 @@ But you can still use `check50` and `submit50`! You just need to log in a bit di 1. Click **New SSH Key**. 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 `eval "$(ssh-agent -s)` to start the ssh-agent in the background. +1. To add the created ssh key. `ssh-add ~/.ssh/id_rsa.pub`. It should say the identity is added. 1. Execute `ssh -T git@ssh.github.com -p 443`. 1. Enter "yes" and press enter if you see the following prompt (the IP address might be different): ```