首页 > 其他 > 详细

记一次gitlab迁移后,ssh连接不上git

时间:2020-05-08 12:39:28      阅读:289      评论:0      收藏:0      [点我收藏+]
ssh -T git@1.1.1.1 -vvv

最后的报错信息:
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).

由于是报密钥问题,我又检查了git上的密钥,发现没有问题

技术分享图片

最后的解决办法是发现sshd配置文件/etc/ssh/sshd_config,UsePAM没开

vi /etc/ssh/sshd_config
修改
UsePAM yes

记一次gitlab迁移后,ssh连接不上git

原文:https://www.cnblogs.com/jeffcsr/p/12849526.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!