简体   繁体   English

Github 连接到主机 github.com 端口 22:操作超时

[英]Github connect to host github.com port 22: Operation timed out

I suddenly started getting the following error message while attempting to push or pull:在尝试推或拉时,我突然开始收到以下错误消息:

ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

How can I check If I have the "correct access rights"?如何检查我是否拥有“正确的访问权限”? I've been working on this repository for quite some time and never had issues.我已经在这个存储库上工作了很长一段时间,从来没有遇到过问题。

What am I doing wrong?我究竟做错了什么?

Don't know if someone still needs a solution to this.不知道是否有人还需要解决这个问题。 Went through the same problem and I found a solution with the link below.遇到了同样的问题,我通过下面的链接找到了解决方案。

Create or edit ~/.ssh/config and append the following:创建或编辑~/.ssh/config并附加以下内容:

Host github.com
  Hostname ssh.github.com
  Port 443

You can read from here: https://amesbury.it/git/github/2018/05/15/port22-blocked-github.html您可以从这里阅读: https : //amesbury.it/git/github/2018/05/15/port22-blocked-github.html

我遇到了同样的问题,并通过从~/.ssh/known_hosts文件中删除 github 条目来修复它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GitHub 错误 - “ssh:连接到主机 github.com 端口 22:操作超时致命:无法从远程存储库读取。” - GitHub Error - "ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository." npm 安装错误:ssh:连接到主机 github.com 端口 22:连接超时 - npm install error: ssh: connect to host github.com port 22: Connection timed out ssh:连接到主机 github.com 端口 22:连接超时 - ssh: connect to host github.com port 22: Connection timed out 如何解决这个问题? ssh:连接到主机 github.com 端口 22:连接超时致命 - How to solve this? ssh: connect to host github.com port 22: Connection timed out fatal 无法连接到 github.com 端口 443:操作超时 - Failed to connect to github.com port 443: Operation timed out ssh:连接到主机 github.com 端口 22:连接超时致命:无法从远程存储库读取 - ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository ssh:连接到主机 gist.github.com 端口 22:操作超时致命:无法从远程存储库读取 - ssh: connect to host gist.github.com port 22: Operation timed out fatal: Could not read from remote repository "连接github.com 443端口失败:超时" - Failed to connect to github.com port 443: Timed out 致命:无法连接到github.com:github.com [0:140.82.121.3]:errno =操作超时 - fatal: unable to connect to github.com: github.com[0: 140.82.121.3]: errno=Operation timed out 致命:致命:无法连接到github.com:github.comgithub.com[0:20.205.243.16rno]]:20.205.243.16rno - fatal: fatal: unable to connect to github.com: github.comgithub.com[0: 20.205.243.166]]: errno=Operation timed out
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM