码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-05-08 13:14:46      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:disable   pre   tin   hat   not   img   问题   packet   tla   

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

标签:disable   pre   tin   hat   not   img   问题   packet   tla   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!