Termux内网穿透

在Termux使用公网链接,映射内网ssh

cpolar安装

  • 添加cpolar源
echo "deb [trusted=yes] http://termux.cpolar.com termux extras" >> $PREFIX/etc/apt/sources.list.d/cpolar.list
  • 更新仓库
pkg update
pkg install cpolar

cpolar配置

  • cpolar进行token认证(如果您还没有cpolar账号,请去cpolar官网注册并登录后台获取认证token)
cpolar authtoken OTAxMDNkZGEtZGM3Ni00YzBjLWJkZTQtZmJjMTFiZDY3ZDc4
  • cpolar映射sshd端口
cpolar tcp 8022
  • cpolar映射http端口
cpolar http 8022

cpolar网址链接

https://dashboard.cpolar.com/status #查看隧道类型及详细地址
posted @ 2025-10-25 00:10  NAGISB  阅读(10)  评论(0)    收藏  举报