CentOS 系统启用 root 账户
echo root:password |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 service sshd restart
版权声明:
作者:三炮不吃鱼
链接:https://www.keke.moe/archives/604.html
文章版权归作者所有,未经允许请勿转载。
THE END