sed -i '/GSSAPIAuthentication/s#.*#GSSAPIAuthentication no#g' /etc/ssh/sshd_config
sed -i '/UseDNS/s#.*#UseDNS no#g' /etc/ssh/sshd_config
systemctl restart sshd
linux xshell连接服务器登录速度慢,优化ssh选项即可变快
于 2024-05-16 11:14:11 首次发布
sed -i '/GSSAPIAuthentication/s#.*#GSSAPIAuthentication no#g' /etc/ssh/sshd_config
sed -i '/UseDNS/s#.*#UseDNS no#g' /etc/ssh/sshd_config
systemctl restart sshd