Oracle Cloud 开启 root 权限登录甲骨文VPS

利用脚本来开启root账号密码登录

echo root:S123456 |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

密码是: S123456(根据自己的修改)

你可能感兴趣的:(Ubuntu,服务器,linux,运维)