[ubuntu] 如何關閉 root 或特定使用者遠端 ssh 登入 2016-02-29 camel 租來的主機預設有開 root 遠端登入,這樣其實容易遭人惡意破解 編輯 /etc/ssh/sshd_config,更改 PermitRootLogin no 若是要阻擋特定使用者使用 ssh 遠端登入 DenyUsers root 重新啟動 ssh 服務 sudo service ssh restart 完成!! Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Related