我在Dev Server用ssh的方式 clone github 的一个工程,然后通过脚本调用git pull来同步更新。
但是一般过个三四天,git就连不上了,会报rsa证书可能被修改之类的错误,而且这个时候telnet github的22端口也是不通的,但ping可以通。
之前,我用过dsa的认证,也有一样的问题。
我重启 Dev Server的网络也不管用,只有重启Dev Server系统,才能恢复使用。
有人遇到过这种情况吗?
这是github的网络问题,还是我的系统配置有问题?
This has happened to me too. Then I went to see help and it seemed that the certification had been changed. Now there is no place to access the public key in the backend
https://help.github.com/articles/set-...
Did you change the user to connect to github? For example sudo git pull
If you use sudo to connect, add id_rsa.pub to the root user