已經(jīng)反復(fù)多次遇到這個問題

image.png
如何解決
【前提進入當(dāng)前文件目錄下!!!而非根目錄】
輸入命令 vim ~/.ssh/config
Host github.com
User YourEmail@xx.com
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
- 按 i 或 a 進入編輯模式
- 復(fù)制上面
- esc退出編輯
- :wq保存退出
輸入命令 ssh -T git@github.com

image.png
成功!