使用git clone工程的时候,遇到以下错误
经过查阅发现是ssh模式不支持 用户名+密码 验证,需要调整gitlab服务器ssh配置。
也可以客户端使用http模式绕过
[user@host ~]$ git clone user@gitlab.xx.com:projectname/proj.git
Cloning into itemcenter-all...
user@gitlab.xx.com's password:
Permission denied, please try again.
user@gitlab.xx.com's password:
Permission denied, please try again.
user@gitlab.xx.com's password:
Permission denied (publickey,password,keyboard-interactive).
fatal: The remote end hung up unexpectedly
经过查阅发现是ssh模式不支持 用户名+密码 验证,需要调整gitlab服务器ssh配置。
vi /etc/ssh/sshd_config
#修改这一行
#PasswordAuthentication no
PasswordAuthentication yes
也可以客户端使用http模式绕过
[user@host ~]$ git clone http://gitlab.xx.com/projectname/proj.git
本文讨论了在使用Git通过SSH模式克隆远程仓库时遇到的权限问题,详细介绍了如何调整GitLab服务器的ssh配置以支持密码验证,并提供了一种使用HTTP模式绕过SSH认证的方法。
343

被折叠的 条评论
为什么被折叠?



