Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.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 在cpanel中使用HTTP克隆专用git存储库_Gitlab_Cpanel - Fatal编程技术网

Gitlab 在cpanel中使用HTTP克隆专用git存储库

Gitlab 在cpanel中使用HTTP克隆专用git存储库,gitlab,cpanel,Gitlab,Cpanel,我想将Cpanel与GitLab实例集成,它的存储库是私有的,我不能使用SSH,因为我不能访问这个实例和Cpanel服务器的配置(Cpanel本身中的SSH-keys部分除外) 在Cpanel中,git部分不接受私有git存储库的HTTP URL,它建议改用SSH URL,但我不能 我尝试在URL中使用带有用户名和密码的HTTP URL,但它阻止我这样做。像这样: https://USER:PASS@gitlab instance.com/username/repository.git 任何人都

我想将Cpanel与GitLab实例集成,它的存储库是私有的,我不能使用SSH,因为我不能访问这个实例和Cpanel服务器的配置(Cpanel本身中的SSH-keys部分除外)

在Cpanel中,git部分不接受私有git存储库的HTTP URL,它建议改用SSH URL,但我不能

我尝试在URL中使用带有用户名和密码的HTTP URL,但它阻止我这样做。像这样:
https://USER:PASS@gitlab instance.com/username/repository.git

任何人都可以帮助我使用SSH访问私有git存储库?

您应该:

  • 添加ssh密钥

  • 通过ssh访问repo

  • git@gitlab-instance.com:username/repository.git