Loading... ``` #!/bin/bash echo root:AaBbCc12321 |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 ``` 最后修改:2022 年 10 月 21 日 03 : 45 PM © 允许规范转载 赞赏 要多恰饭才能长胖 赞赏作者 支付宝微信