报错解决
环境: windows10电脑 ssh方式拉取git代码
完整报错
FATAL: Unable to connect to relay host, errno=10061
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决问题过程
删除了config 定义的host 地址。
在vim编辑器里面直接dd删除,然后esc wq! 保存退出来。
重新生成密钥
ssh-keygen
查看密钥
cd ~/.ssh/
cat id_rsa.pub
登陆github,填入密钥