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

蒜蓉粉丝蒸扇贝 2020-05-08

ssh -T  -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上的密钥,发现没有问题

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

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

vi /etc/ssh/sshd_config
修改
UsePAM yes

相关推荐