Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.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
gitlab上通过端口443的ssh不工作_Gitlab - Fatal编程技术网

gitlab上通过端口443的ssh不工作

gitlab上通过端口443的ssh不工作,gitlab,Gitlab,我正在尝试使用端口443推拉我的gitlab存储库,因为我的端口22已被阻止(参考:) 我在下面给出了我创建的配置文件(我创建了一个新的ssh密钥,并在我的gitlab概要文件中进行了更新-注意:我没有将服务器密钥添加为部署密钥,而是将其添加到我的概要文件中) 我的配置文件: Host gitlab.com Hostname altssh.gitlab.com User gitlabusername Port 443 Preferr

我正在尝试使用端口443推拉我的gitlab存储库,因为我的端口22已被阻止(参考:)

我在下面给出了我创建的配置文件(我创建了一个新的ssh密钥,并在我的gitlab概要文件中进行了更新-注意:我没有将服务器密钥添加为部署密钥,而是将其添加到我的概要文件中)

我的配置文件:

Host gitlab.com
        Hostname altssh.gitlab.com
        User gitlabusername
        Port 443
        PreferredAuthentications publickey
        IdentityFile ~/.ssh/id_rsa.pub
我不断得到以下错误:

权限被拒绝(公钥) 致命:无法从远程存储库读取

错误可能是由于ssh密钥以外的原因造成的吗

问候,,
Galeej

我刚刚配置了它,它对我来说运行良好

在您的配置文件中,您需要使用私钥
id\u rsa
而不是公钥
id\u rsa.pub

Host gitlab.com
  Hostname altssh.gitlab.com
  User git
  Port 443
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_rsa
您可以使用以下命令测试连接
ssh-T-p443git@altssh.gitlab.com


确保您已将公钥
id\u rsa.pub
作为添加到您的GitLab帐户。

您有解决方案吗?我也有同样的问题不。我们目前正在使用https而不是ssh。我们还没有弄明白:(我发现ssh在有线电视上对我有效,但在WIFI上不行。我们两个都试过了。没有帮助。谢谢你的回答!!