简述
- 最近需要ssh连接centos7,但是每次连接都很慢,原因有2点,1是DNS反向解析的问题,2是Gssap认证问题,修改两个选项就能秒连。
方案
- 修改
/etc/ssh/sshd_config文件。
vim /etc/ssh/sshd_config
## 修改GSSAPIAuthentication参数为no
GSSAPIAuthentication no
## 修改UseDNS为no
UseDNS no

- 重启ssh
systemctl restart sshd /etc/ssh/sshd_config文件。vim /etc/ssh/sshd_config
## 修改GSSAPIAuthentication参数为no
GSSAPIAuthentication no
## 修改UseDNS为no
UseDNS no

systemctl restart sshd info 还没有任何评论,你来说两句呐!