SecureCRT连虚拟机很慢很慢解决方法
现象:
SSH到虚拟机需要1-2分钟才连的上,速度较慢
原因:
sshd_config文件中UseDNS服务器反向解析缺省打开,根据客户端IP地址进行DNS PTR反向查
询客户端的主机名,以此进行A记录查询,来验证IP地址是否一致,防止欺骗
解决方法:
root下修改配置文件
vim /etc/ssh/sshd_config
/UseDNS #查询
UseDNS no #修改为no
/GSSAPIAuthentication #查询
GSSAPIAuthentication no #修改为no
重启ssh服务
systemctl restart sshd