首页 > 解决方案 > ssh克隆不适用于Windows bash(客户端)的gitlab服务器

问题描述

我在 gitlab 中创建了一个新的存储库,其中创建了一个自述文件 init(通过 gitlab 门户网站),并且我已将用户添加到 git 存储库以进行访问(推送/合并)。现在 gitlab 服务器是 ubuntu 机器,我正在尝试从不同的 pc(win10) git bash 终端克隆 repo。我已经配置了用户设置。

添加了 git 用户名、电子邮件 id、git 远程 url 在 win 10 客户端中生成了 ssh 密钥并在 gitlab 帐户设置中更新了相同的内容(Web 界面 - 添加 ssh 密钥)

$ git clone ravi@1xx.1xx.2xx.29:8181/ravi/test-project.git  
Cloning into 'test-project'...  
ravi@1xx.1xx.2xx.29's password:  

fatal: '8181/ravi/test-project.git' does not appear to be a git repository  
fatal: Could not read from remote repository.  

Please make sure you have the correct access rights  
and the repository exists.  

你能帮我解决这个问题吗

标签: ssh

解决方案


推荐阅读