- 首先,我们要以root身份登录远程主机
- vim指令编辑ssh配置文件,如
vim /etc/ssh/sshd_config
- 查找PermitRootLogin,把yes改为no
- 修改完配置需要重启ssh服务
service sshd restart
centos禁止root用户ssh远程登录
猜你喜欢
转载自www.cnblogs.com/lay2017/p/11830152.html
今日推荐
周排行