1. 睿睿

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

  2. 香油

    打开了新世界的大门