刚刚装完虚拟机,而且用NAT方式使虚拟机能够上网,但是很快发现ssh连接特别慢,以下是解决方法:
1、在ssh服务端上更改/etc/ssh/sshd_config
文件中的配置为如下内容:
UseDNS no
# GSSAPI options
GSSAPIAuthentication no
2、执行
重启sshd进程使上述配置生效,在连接一般就不慢了。
[root@bogon ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)