yum install -y openssh-server openssh-clinets
1)vi /etc/ssh/sshd_config,将PermitRootLogin的值改成no,并保存
2)service sshd restart
这样,就能用roo禁用ssh登录了。
创建用户允许sudo权限------
创建一个用户比如:#useradd master
设置密码: #passwd master
添加master账号有sudo权限,如下:
#visudo
加入
master ALL=(ALL) NOPASSWD: ALL