[英]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.