git - ssh 连接超时说明
问题描述
谁能解释为什么我们会收到此错误:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我从这篇文章中得到了一些解决方案。但我没有得到任何解释为什么或是什么造成了问题。
我将我的配置文件更改为:
#account- github
Host github.com
HostName ssh.github.com
Port 443
IdentityFile ~/.ssh/github_id_ed25519
我hostname
以前是 github.com,所以我做了那个并附上了ssh.github.com
一个port
数字。但我仍然想解释为什么会发生这种情况。
这是与操作系统相关的问题吗?还是只是网络问题?
我的意思是更改端口并使用其他端口不是正确的答案,应该有一个解释
解决方案
我认为您可能没有将计算机/实例的 ssh 密钥添加到您的帐户,因此您无法访问存储库。
推荐阅读
- sql - 根据参数循环运行存储过程
- android - 库模块不包含 Android 中的依赖项
- python - 如何检测字符串中的浮点数并将其转换为单个整数
- ibm-midrange - 如何更改 iSeries Admin2 JAVA_HOME 环境变量
- json - 从 Hive 访问大型嵌套 JSON 数据集
- android - 'json 响应以 '/' 字符开头是什么意思?
- c# - 创建一个抽象函数,该函数根据继承者采用不同的参数
- mysql - Ejabberd MySQL 模式
- csv -  或 ? 使用骆驼从 s3 读取 csv 文件时,字符被添加到第一列
- excel - 如何根据其他列的颜色更改列的颜色?