xshell远程连接centos7,认证时间非常长的解决办法

背景

笔者以前使用的都是centos6,xshell连接centos6都是秒连。
这次换了centos7,我在配置完静态IP地址后,使用xshell连接centos7认证时间非常长。

办法

1》修改linux配置文件,命令:vim /etc/ssh/sshd_config
将#UseDNS yes 改为:
UseDNS no
2》重启sshd服务,命令:systemctl restart sshd
这时候,认证就非常快了。

猜你喜欢

转载自blog.csdn.net/fu123123fu/article/details/81070838