【发布时间】:2020-10-18 09:09:03
【问题描述】:
我不明白为什么这个命令不起作用。请问有人遇到过这种情况吗?
参数: Apache/2.4.29 (Ubuntu) php.7.4.7 git 版本 2.17.1
git status, git checkout, git branch
有效,但 git pull origin master, git push origin master 无效。我在谷歌上找不到答案。
错误:
ssh:连接到主机 github.com 端口 22:连接超时 致命:无法从远程存储库读取。
编辑: 我找到了这个,但它对我不起作用:link 我收到超时错误:
ssh:连接到主机 ssh.github.com 端口 443:连接超时 致命:无法从远程存储库中读取。 请确保您拥有正确的访问权限 并且存储库存在。
请帮帮我
【问题讨论】:
-
您能否发布更多详细信息,例如来自 git 的输出/错误消息。
-
@CQLI 感谢回复。也添加了错误消息
-
另一种可能是您在项目下添加了 ssh 密钥,而不是在用户配置文件下。你能不能也检查一下。
-
@AbhilashPS 谢谢回答,它自己工作
标签: git ubuntu github apache2 ssh-keys