Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 创建本地git存储库失败_Linux_Git_Github_Gitlab - Fatal编程技术网

Linux 创建本地git存储库失败

Linux 创建本地git存储库失败,linux,git,github,gitlab,Linux,Git,Github,Gitlab,我想在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

我想在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.
谢谢连接超时消息表明您的机器无法连接到端口22


由于我可以很好地访问gitlab.khronos.org端口22,因此我的结论是,问题出在本地网络中的防火墙。

您是否尝试过直接使用ssh?您是否将ssh密钥添加到gitlab帐户?@marcolz是的,我在生成并添加了ssh密钥。下面是我的配置主机gitlab.khronos.org用户sami Hostname gitlab.khronos.org PreferredAuthentications公钥端口22 IdentityFile/home/sami.md/.ssh/id_rsa。pub@IgnacioVazquez Abrams如何尝试直接使用ssh?