配置ssh服务允许root管理员直接登录

配置ssh服务允许root管理员直接登录

[root@linux-node2 ~]# grep PermitRootLogin /etc/ssh/sshd_config 
PermitRootLogin yes # 允许root管理员直接登录

[root@linux-node2 ~]# grep PasswordAuthentication /etc/ssh/sshd_config
PasswordAuthentication yes # 允许密码验证

[root@linux-node2 ~]# /etc/init.d/sshd restart
原文地址:https://www.cnblogs.com/zhouwanchun/p/10683000.html