根据 自己的喜好设置开机
进行静态IP的设置
随后进入ssh
输入指令,获取root权限
sudo -i
输入passwd设置密码
passwd
随后分别输入指令
sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
重启SSH服务
systemctl restart sshd