search

Home  >  Q&A  >  body text

通过ssh方式clone github工程,rsa证书一段时间就失效,重启机器就恢复,求解

我在Dev Server用ssh的方式 clone github 的一个工程,然后通过脚本调用git pull来同步更新。
但是一般过个三四天,git就连不上了,会报rsa证书可能被修改之类的错误,而且这个时候telnet github的22端口也是不通的,但ping可以通。
之前,我用过dsa的认证,也有一样的问题。
我重启 Dev Server的网络也不管用,只有重启Dev Server系统,才能恢复使用。
有人遇到过这种情况吗?
这是github的网络问题,还是我的系统配置有问题?

PHP中文网PHP中文网2810 days ago811

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-21 10:59:09

    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-...

    reply
    0
  • 黄舟

    黄舟2017-04-21 10:59:09

    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

    reply
    0
  • Cancelreply