Ubuntu18.04系統(tǒng)如何禁用root用戶登錄
發(fā)布時間:2023/1/30 11:49:18
Ubuntu18.04系統(tǒng)如何禁用root用戶登錄
在ubuntu18.04中如何禁用root用戶登錄呢?本文給出詳細(xì)說明。
1.打開sshd_config文件
vi /etc/ssh/sshd_config
2.將PermitRootLogin yes 改為 PermitRootLogin no后保存退出
說明:在禁止root用戶登錄之前,請先確認(rèn)已存在其他可以ssh登錄的賬戶
本文來源:
http://666323.cn/aws/article/6708.html
[復(fù)制鏈接]
鏈接已復(fù)制