3.9限制root远程登陆

vim /etc/ssh/sshd_config
修改内容:
PermitRootLogin no

systemctl restart sshd

重新使用 远程连接工具 进行连接。

通过sudo 设置su命令 切换 root

猜你喜欢

转载自blog.csdn.net/hx_7_8_9/article/details/82875626
今日推荐