这两天搭建了一台内网的centos7,领导使用反应说远程连接还有ftp等连接速度很慢,让看下。按照如下调整,速度显著提升。
一、备份
备份/etc/ssh/sshd_config,备份命令为
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
二、调整/etc/ssh/sshd_config
1.su root (以root用户登录) 2.vi /etc/ssh/sshd_config 3.输入 / ,查找GSSAPIAuthentication 赋值为no 4.输入 /,查找UseDNS,赋值为 no(放开该项,去掉#) 5.!wq保存文件
三、重启sshd
systemctl restart sshd