Centos 6.5 禁用root 账号

xiaoxiao2021-02-28  148

禁用SSH Root登录 vi /etc/ssh/sshd_config   42 PermitRootLogin no 限制SSH登录用户 AllowUsers hz 重启SSH

service sshd restart

=============================================== 启用SSH Root登录 vi /etc/ssh/sshd_config   42

PermitRootLogin yes

重启SSH

service sshd restart

================================================
转载请注明原文地址: https://www.6miu.com/read-22366.html

最新回复(0)