Ubuntu18.04系統(tǒng)如何禁用root用戶登錄
時間:2024/5/21 9:59:14 來源:米安網(wǎng)絡(luò) 作者:云主機配置專家 點擊:251次
在ubuntu18.04中如何禁用root用戶登錄呢?本文給出詳細(xì)說明。
1.打開sshd_config文件
vi /etc/ssh/sshd_config
2.將PermitRootLogin yes 改為 PermitRootLogin no后保存退出
說明:在禁止root用戶登錄之前,請先確認(rèn)已存在其他可以ssh登錄的賬戶
版權(quán)保護: 本文「Ubuntu18.04系統(tǒng)如何禁用root用戶登錄」由 云主機配置專家 原創(chuàng),轉(zhuǎn)載請保留鏈接: http://www.iqcg.cn/docs/system/786.html