提高ssh登录服务器的响应速度

server A—> server B

从A登录B,修改服务器B上的ssh配置文件: /etc/ssh/sshd_config 在文件尾部添加一行

UseDNS no

重启sshd,明显可以感觉到ssh登录速度的提升