如何从SSH GIT存储库URL中导入gitlab中的存储库



我想用ssh://

在gitlab中导入一个项目

我在同一网络上有:

  • 安装在raspebrry上的gitlab
  • Synology上的Git服务器

我的git服务器仅通过ssh://*****@mysynology:/the/repository/path/myproject.git

提供

我在没有密码的情况下尝试使用SSH密钥身份验证,但我不知道Gitlab使用的用户执行Git Clone ...

我在gitlab中有此消息:

Error importing repository ssh://*****@mysynology/the/repository/path/myproject.git into root/myproject - Cloning into bare repository '[REPOS PATH]/root/myproject.git'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

先尝试先到ssh至 *****@mysynology,并确保/the/repository/path/myproject.git可访问。

然后使用SSH URL在您的本地PC上克隆。

最后,推回您的gitlab。

我不知道gitlab用来执行git克隆的用户...

无需:创建一个新的空Gitlab存储库(要接收您的推动(。
该新存储库的GitLab页面将向您显示您应该在SSH URL中包含的SSH用户(通常是' git'(

最新更新