解決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
相關文章
相關標籤/搜索