linux的一些基本安全策略

禁用ROOT远程

   # vi /etc/ssh/sshd_config

把PermitRootLogin yes   改成  PermitRootLogin no,不允许使用ROOT远程登录。

 添加个用户用来登录: user add guest

设置个密码: passwd guest 

重启下SSH :service sshd restart 


你可能感兴趣的:(linux)