openbsd 禁止root远程登陆
生活随笔
收集整理的這篇文章主要介紹了
openbsd 禁止root远程登陆
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、增加普通用戶.adduser testaddusertestuserTest FAQ UserkshEnternoEnterType password, then Enter Type password, then Enteryn2、修改/etc/group在wheel組中修改為wheel:*:0:root,test為了用test登錄后,使用su切換到root
3、備份sshd_config生產機器禁止ROOT遠程SSH登錄:#vi /etc/ssh/sshd_config把#PermitRootLogin yes 修改為PermitRootLogin no ?去了"#".yes改為no.保存 。重啟sshd。再試用root遠程登錄。不能登錄。OK!
3、備份sshd_config生產機器禁止ROOT遠程SSH登錄:#vi /etc/ssh/sshd_config把#PermitRootLogin yes 修改為PermitRootLogin no ?去了"#".yes改為no.保存 。重啟sshd。再試用root遠程登錄。不能登錄。OK!
轉載于:https://blog.51cto.com/3168247/634292
總結
以上是生活随笔為你收集整理的openbsd 禁止root远程登陆的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 让你的C程序更有效率的10种方法
- 下一篇: GalleryView