问题描述:
git clone 或 git push等操作都会出现这样的问题:
OpenSSL SSL_connect: Connection was reset in connection to github.com:443
又或者:
Failed to connect to github.com port 443: Timed out
试着ping github.com 是可以ping通的
在网上找了很多方法解决,没有效果,最终在配置密钥的文件夹中发现了自己以前为了连接github埋的坑:
其中前两个文件配置密钥的,没有问题,后两个是生成的host文件。
重新生成密钥,
ssh-keygen
然后删除host文件,配置好公钥,再进行连接,问题解决了