Linux 解決ssh鏈接慢的問題

備份文件

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

編輯文件

vi /etc/ssh/sshd_config

輸入/ 查找GSSAPIAuthentication

圖片描述

設置以下html

GSSAPIAuthentication no # 是否容許使用基於 GSSAPI 的用戶認證。默認值爲"no"。僅用於SSH-2

詳細解釋linux

輸入/ 查找UseDNS

設置以下centos

UseDNS no # yes 開啓的做用是防止客戶端欺騙

詳細解釋ssh

重啓ssh服務

systemctl restart sshd

親測有效centos7

原文連接:解決ssh登陸linux速度慢的問題(以centos7爲例)spa

相關文章
相關標籤/搜索