|
按照我这篇忘记密码教程操作
https://hostloc.com/thread-859664-1-1.html
最后在加上开启root登录操作
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;
然后执行touch /.autorelabel
执行命令exec /sbin/init 启动操作系统 |
|