[英]How import repository in gitlab from a ssh git repository url?
我想用ssh://在gitlab中导入一个项目
我在同一个网络上:
我的git服务器只能通过ssh:// ***** @ mysynology:/the/repository/path/myproject.git获得
我尝试使用没有密码的ssh密钥验证,但我不知道gitlab用来执行git克隆的用户...
我在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上克隆repo。
最后,回到你的GitLab。
我不知道gitlab用来做git clone的用户...
不需要:创建一个新的空GitLab存储库(以接收您的推送)。
并且新存储库的GItLab页面将向您显示您应该包含在SSH URL中的SSH用户(通常是' git
')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.