全球主机交流论坛
标题:
问个小白问题,aws Lightsail 的开机脚本
[打印本页]
作者:
qq7877666
时间:
2023-12-6 00:55
标题:
问个小白问题,aws Lightsail 的开机脚本
本帖最后由 qq7877666 于 2023-12-6 00:57 编辑
我现在有个一键搭建sk5代理的脚本,但是呢,Lightsail开机运行肯定不行,因为没root模式。
我开机脚本前加什么命令就可以开机自动搭建了
作者:
youth
时间:
2023-12-6 01:00
#!/bin/bash
echo root:
这里是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
作者:
Blanke
时间:
2023-12-6 08:36
路过
~~
欢迎光临 全球主机交流论坛 (https://loc.mjj8.eu.org/)
Powered by Discuz! X3.4