oracle创建实例开启root密码登录

在高级选项-选择粘贴cloud-init脚本

#!/bin/bash
echo root:rootpasswd |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 reboot

你可能感兴趣的:(oracle创建实例开启root密码登录)