1.编辑/etc/ssh/sshd_config
vi /etc/ssh/sshd_config
2.将PermitRootLogin yes前注释去掉
PermitRootLogin yes
3.重启sshd服务
service sshd restart
1.编辑/etc/ssh/sshd_config
vi /etc/ssh/sshd_config
2.将PermitRootLogin yes前注释去掉
PermitRootLogin yes
3.重启sshd服务
service sshd restart