[CentOS7]解决SSH登录慢的问题

\cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
sed -i '/UseDNS/cUseDNS no' /etc/ssh/sshd_config
sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_config
systemctl restart sshd

END

posted @ 2020-08-05 07:47  LeoShi2020  阅读(178)  评论(0编辑  收藏  举报