【发布时间】:2016-02-11 06:28:29
【问题描述】:
我很想在 ubuntu 14.10 上使用此命令创建一个本地 git 存储库,但它失败并出现错误“您没有正确的访问权限”。知道可能是什么问题吗?是防火墙问题吗?
$git clone -o khronos git@gitlab.khronos.org:vulkan/LoaderAndTools.git .
Cloning into '.'...
ssh: connect to host gitlab.khronos.org 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吗?
-
您是否将 ssh 密钥添加到您的 gitlab 帐户?
-
@marcolz 是的,我在 gitlab.khronos.org/profile/keys 生成并添加了我的 SSH 密钥。下面是我的配置主机 gitlab.khronos.org 用户 sami 主机名 gitlab.khronos.org PreferredAuthentications publickey 端口 22 IdentityFile /home/sami.md/.ssh/id_rsa.pub
-
@Ignacio Vazquez-Abrams 如何尝试直接使用 ssh?