记一次gitlab迁移后,ssh连接不上git
时间:2020-05-08 12:39:28
收藏:0
阅读:292
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
原文:https://www.cnblogs.com/jeffcsr/p/12849526.html
评论(0)