【发布时间】:2023-03-25 19:11:01
【问题描述】:
我正在尝试访问 Gitlab 服务器以克隆 Ubuntu 20.10 计算机中的存储库,但我总是收到以下消息:
ssh: connect to host gitlab.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
所以,我尝试运行命令ssh -T git@gitlab.com,但我收到了消息:
ssh: connect to host gitlab.com port 22: Network is unreachable
我已经在另一台装有 Ubuntu 20.04 的计算机上进行了尝试,并且成功了。
有人可以帮我吗?
【问题讨论】:
-
您所在的网络是否可能阻塞了端口 22 上的流量?
-
我已经在我的电脑上打开了 22 端口。
-
它可能在您的计算机上打开,但您所在的网络是否可能阻止端口 22 上的流量?
-
我也是这么想的,但是我用同一个门在github上连接了,它正在工作。
-
我也有同样的问题。几天来我一直在避免使用 HTTPS,但似乎这是我唯一的选择
标签: git ssh gitlab ssh-keys public-key