第一步:首先sudo passwd root 设置root密码
第二步:#vim /etc/ssh/sshd_config
#PermitRootLogin without-password #找到这里,把它注释
PermitRootLogin yes #如果没有该选项,则新建
第三步:#service ssh restart
第一步:首先sudo passwd root 设置root密码
第二步:#vim /etc/ssh/sshd_config
#PermitRootLogin without-password #找到这里,把它注释
PermitRootLogin yes #如果没有该选项,则新建
第三步:#service ssh restart