关于甲骨文开主机默认启用root权限的方法

吧脚本放在最后的高级里有个脚本,把密码改成你的密码即可!

 

#!/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

 

本内容需要密码才能查看
上一篇 ubuntu 20.04 lts 宝塔安装不上nginx
下一篇 Linux开启和关闭防火墙命令