美文网首页
oracle创建实例开启root密码登录

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

作者: looha | 来源:发表于2022-02-02 02:10 被阅读0次

    在高级选项-选择粘贴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密码登录

          本文链接:https://www.haomeiwen.com/subject/yyilkrtx.html