测试机
[root@localhost ~]# cat /etc/*release CentOS Linux release 7.9.2009 (Core) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.9.2009 (Core) CentOS Linux release 7.9.2009 (Core)
|
方案
可以通过修改/etc/ssh/sshd_config
中的GSSAPIAuthentication
和UseDNS
来提升ssh的速度
1、打开sshd_config
2、找到GSSAPIAuthentication
和UseDNS
,并将其调为no
![file](https://www.kfele.asia/wp-content/uploads/2024/03/1710454095-aec38704e6da328e492e64aeed260ce4.webp)
![file](https://www.kfele.asia/wp-content/uploads/2024/03/1710454069-e00e502cfa8b9985a84d119215d4ba24.webp)
至此,大功告成!