ssh登录到服务器卡在用户验证的解决方法

1、关闭dns反向解析

vi /etc/ssh/sshd_config
UseDNS no

2、关闭ssh的gssapi认证

vi /etc/ssh/sshd_config
GSSAPIAuthentication no

3、重启sshd

/etc/init.d/sshd restart 

systemctl restart sshd  (centos7)

ps:避免因为修改sshd配置文件重启导致的无法登陆,请同时开两个登陆的session

posted @ 2020-12-04 14:34  骑猪追夕阳_577513827  阅读(291)  评论(0编辑  收藏  举报