解决ssh链接linux服务器速度慢

服务器端sshd配置文件 /etc/ssh/sshd_config 看是否有以下的两条配置条目服务器

GSSAPIAuthentication no
UseDNS no

若是前面带#,请把#删掉,或者新添加入这样两行。ssh

而后重启sshd服务,或者重启服务器也能够。spa

查看状态:rest

systemctl status sshd.service

启动服务:code

systemctl start sshd.service

重启服务:blog

systemctl restart sshd.service

开机自启:io

systemctl enable sshd.service
相关文章
相关标签/搜索