使用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