安装sshd服务
设置允许root访问
vim /etc/ssh/sshd_config
修改成:
添加root访问密码:
sudo passwd root
输入密码后重启sshd服务:systemctl restart sshd