`
tinyhema
  • 浏览: 150421 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

git lab Permission denied 错误解决方案

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

[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


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics