Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github连接到主机Github.com端口22:操作超时_Git_Terminal - Fatal编程技术网

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

Github连接到主机Github.com端口22:操作超时,git,terminal,Git,Terminal,在尝试推拉时,我突然收到以下错误消息: 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. 如何检查我是否拥有“正确的访问权限”?我在这个存储库上工作了相当长的时间,从来没有遇

在尝试推拉时,我突然收到以下错误消息:

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.
如何检查我是否拥有“正确的访问权限”?我在这个存储库上工作了相当长的时间,从来没有遇到过问题


我做错了什么?

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

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

不知道是否还有人需要解决此问题的方法。经历了同样的问题,我找到了一个解决方案,链接如下

创建或编辑
~/.ssh/config
并附加以下内容:

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

你可以从这里读到:

不知道是否有人还需要解决这个问题。经历了同样的问题,我找到了一个解决方案,链接如下

创建或编辑
~/.ssh/config
并附加以下内容:

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

您可以从这里阅读:

telnet github.com 22
——如果运行它,您会得到什么?@zerkms I get
操作超时
无法连接到远程主机
那是你的连接有问题。@zerkms有什么办法解决这个问题吗?可以是任何问题:从操作系统的问题到互联网提供商的问题。
telnet github.com 22
——如果你运行它,你会得到什么?@zerkms I get
操作超时
无法连接到远程主机
那是因为你的连接有问题。@zerkms有什么办法解决这个问题吗?可以是任何问题:从操作系统的问题到互联网提供商的问题。