【发布时间】:2020-09-02 04:48:53
【问题描述】:
我最近设置了一个 linode 服务器(Ubuntu 20.04 LTS)来托管一个大学项目的 web 应用程序。 如果我想克隆我们的项目存储库(它由我的大学托管),我会收到以下错误:
通过 https 进行克隆:
yannic@flask-blog-server:~$ sudo git clone git@ops.hs-kempten.de:swp/vorlage.git
Cloning into 'vorlage'... [This step always took 2 or 3 minutes]
ssh: connect to host ops.hs-kempten.de 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 克隆:
yannic@flask-blog-server:~$ git clone https://ops.hs-kempten.de/swp/vorlage.git
Cloning into 'vorlage'... [Again this step took 2 or 3 minutes]
fatal: unable to access 'https://ops.hs-kempten.de/swp/vorlage.git/': Failed to connect to ops.hs-kempten.de port 443: Connection timed out
我能够从我的 Windows PC、我的 Raspberry 和适用于 Linux 的 Windows 子系统克隆所述存储库。 我还能够从我的 linode 服务器克隆托管在 gitlab.com 和 github.com 上的存储库。
【问题讨论】:
-
ops.hs-kempten.de对我来说是无法访问的,不仅对我来说:downforeveryoneorjustme.com/ops.hs-kempten.de。您说“我能够从我的 PC 克隆所述存储库”——您与主机在同一个网络中吗?它是否可供您使用,但不能供您网络之外的任何人使用? -
不,我不在同一个网络中,我是在家里做的,我没有启用通往我大学的 VPN 隧道。