Ssh登录慢
来自ling
vi /etc/ssh/sshd_config
把参数UseDNS yes 改为UseDNS no。这个参数位于配置文件的第130行,我使用的操作系统是CentOS 7,不同的操作系统此参数的位置可能会不同
systemctl restart sshd.service (CentOS 7使用此命令) service sshd restart (CentOS 7 之前的版本使用这个命令重启sshd服务)
vi /etc/ssh/sshd_config
把参数UseDNS yes 改为UseDNS no。这个参数位于配置文件的第130行,我使用的操作系统是CentOS 7,不同的操作系统此参数的位置可能会不同
systemctl restart sshd.service (CentOS 7使用此命令) service sshd restart (CentOS 7 之前的版本使用这个命令重启sshd服务)