git lab Permission denied 错误解决方案

使用git clone工程的时候,遇到以下错误


[user@host ~]$ git clone [email protected]:projectname/proj.git
Cloning into itemcenter-all...
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'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

你可能感兴趣的:(系统配置)