1,useradd xiaobing
passwd xiaobing (设置密码)
2,禁止root登陆,修改 /etc/ssh/sshd_config
PermitRootLogin yes 改为 PermitRootLogin no
systemctlrestart sshd
3,增加sudoer权限
4,vi /etc/sudoers
增加:
xiaobing ALL=(ALL) ALL
1,useradd xiaobing
passwd xiaobing (设置密码)
2,禁止root登陆,修改 /etc/ssh/sshd_config
PermitRootLogin yes 改为 PermitRootLogin no
systemctlrestart sshd
3,增加sudoer权限
4,vi /etc/sudoers
增加:
xiaobing ALL=(ALL) ALL