吧脚本放在最后的高级里有个脚本,把密码改成你的密码即可!
#!/bin/bash
echo root:密码 |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo systemctl stop firewalld
sudo systemctl disable firewalld.service
sudo service sshd restart
本内容需要密码才能查看