红米 AX6S 解锁 刷入shellclash的方法,以及固化ssh

解锁刷入shellclash
https://qust.me/post/ax6s/

固化参考这个
https://github.com/lemoeo/AX6S

固化经目前测试不需要改什么文件,可以直接用shellclash里的固化功能
另外固化也可以用 https://github.com/lemoeo/AX6S 里的方法,不过不用那么复杂,在取得ssh权限后

稳定版固件开启 SSH
永久开启 SSH 原理就是添加一个开启自动运行的脚本,来实现自动开启 SSH。缺点就是恢复出厂设置或重新刷机后需要重新添加。
# 创建一个目录并进入目录
mkdir /data/auto_ssh && cd /data/auto_ssh
# 下载脚本,如果使用 GitHub 源下载失败,可以尝试使用 jsDelivr CDN 源进行下载
# GitHub 源
curl -O https://github.com/lemoeo/AX6S/raw/main/auto_ssh.sh
# jsDelivr CDN 源
curl -O https://cdn.jsdelivr.net/gh/lemoeo/AX6S@main/auto_ssh.sh
# 添加执行权限
chmod +x auto_ssh.sh
# 添加开机自动运行
uci set firewall.auto_ssh=include
uci set firewall.auto_ssh.type=’script’
uci set firewall.auto_ssh.path=’/data/auto_ssh/auto_ssh.sh’
uci set firewall.auto_ssh.enabled=’1′
uci commit firewall
自此,稳定版本固件重启也会自动开启SSH了。

如果不需要自动开启 SSH 了,可以执行下面命令移除:

# 移除开机自动运行
uci delete firewall.auto_ssh
uci commit firewall



发表评论

您的电子邮箱地址不会被公开。

36 − 31 =