记一次gitlab迁移后,ssh连接不上git
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上的密钥,发现没有问题
最后的解决办法是发现sshd配置文件/etc/ssh/sshd_config,UsePAM没开
vi /etc/ssh/sshd_config 修改 UsePAM yes
相关推荐
LiHansiyuan 2020-06-14
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19