/ Home

Git ssh

Problem

After adding ssh key to your github. You might face an error while cloning private repositories, when you give git clone, it might take longtime than usual and throws an error as

image

Solution:

sudo nano ~/.ssh/config
Host github.com
 Hostname ssh.github.com
 Port 443
ssh -T git@github.com

It will show a message as:
“Hi xxx, you’ve successfully authenticated”

Close your terminal, reopen it and start cloning

Ref :