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
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