安装Google play

安装termux

pkg install shhd
shhd    //启动sshd
passwd //设置密码
whoami //查询sshd 的用户名称
port  //8022

设置开机启动shhd等命令

nano  ~/.bashrc
if ! pgrep "sshd" >/dev/null; then
    sshd
    echo "SSH 已启动 (端口: 8022)"
fi

最后修改:2025 年 05 月 21 日
如果觉得我的文章对你有用,请随意赞赏