關閉SSHRoot遠端登入 Posted on 2019-11-25 Edited on 2024-07-03 In CentOS7 Views: Disqus: Symbols count in article: 196 Reading time ≈ 1 mins.關閉 SSH root 遠端登入以root權限編輯SSH設定檔1$ vim /etc/ssh/sshd_config將該設定改成no12# 是否允許 root 管理者以 SSH 登入PermitRootLogin no重新啟動SSH服務12345# 重新啟動 SSH 服務(CentOS Linux)systemctl restart sshd# 重新啟動 SSH 服務(Ubuntu Linux)service sshd restart