小编Lui*_*ipe的帖子

ssh:连接到主机 gitlab.com 端口 22:网络无法访问

我正在尝试访问 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.

Run Code Online (Sandbox Code Playgroud)

所以,我试图运行命令ssh -T git@gitlab.com,但我收到了消息:

ssh: connect to host gitlab.com port 22: Network is unreachable
Run Code Online (Sandbox Code Playgroud)

我已经在另一台装有 Ubuntu 20.04 的计算机上尝试过,它工作正常。

任何人都可以帮助我吗?

git ssh ssh-keys public-key gitlab

5
推荐指数
3
解决办法
6253
查看次数

标签 统计

git ×1

gitlab ×1

public-key ×1

ssh ×1

ssh-keys ×1