编辑配置文件
1
sudo vim /etc/ssh/sshd_config
PermitRootLogin without-password -> PermitRootLogin yes添加root密码
PermitRootLogin without-password -> PermitRootLogin yes
sudo passwd root
重启ssh服务
sudo systemctl ssh.service restart