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


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM