git clone失败
背景
使用git clone xxx
拉取仓库失败,网络正常,ssh key
已正常配置。
执行命令ssh -T git@github.com
检测失败,返回kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
解决方案
执行命令
ssh -T -p 443 git@ssh.github.com
如果正常返回,新增文件 ~/.ssh/config,文件内容
Host github.com
Hostname ssh.github.com
Port 443
User git
本作品采用《CC 协议》,转载必须注明作者和本文链接