CentOS 7 - SSH 安全性設定 (Secure Shell protocol) (內容更新 - 2020/03/02)
CentOS 7 – SSH 安全性設定 (Secure Shell protocol) (內容更新 – 2020/03/02)
心得:
安裝好 CentOS 7,可以先行修改 SSH 設定,達到系統安全的第一步
個人認為比較重要且通用的設定
禁止 root 遠端登入
演算法限定
限制使用帳號與來源 IP
關於 CentOS 7 安裝的步驟可以參考:
安裝CentOS 7
設定:
編輯位於/etc/ssh下的檔案,sshd_config
# vim /etc/ssh/sshd_config
Port 22 說明:SSH 使用的 Port number,預設使用 22 Protocol 2 說明:強制使用 SSH Version 2 LoginGraceTime 1m 說明:連線未動作斷線時間 PermitRootLogin no 說明:root 是否可以遠端 ssh 登入,建議關閉 MaxAuthTries 2 說明:ssh…
View On WordPress












