使用cpolar把私网地址映射成公网地址(树莓派ssh远程登录)
(2022-07-17 10:17:13)
参考:https://www.cpolar.com/blog/how-to-remotely-access-the-raspberry-pi-at-home-with-ssh
在任何地方(包括4g网络)ssh登录家中树莓派
1.树莓派上安装cpolar
curl -L
https://www.cpolar.com/static/downloads/install-release-cpolar.sh |
sudo bash
查看cpolar版本:
cpolar version
2.cpolar官网注册
https://dashboard.cpolar.com/auth
树莓派上注册认证token
cpolar authtoken xxxxxxxxxxxxxxxxxx
3.树莓派上配置cpolar开机自启动
sudo systemctl enable cpolar
sudo systemctl start cpolar
查看启动状态(active)
sudo systemctl status cpolar
4.查看cpolar状态(树莓派或者其它登录机器上)
https://dashboard.cpolar.com/status
5.远程机器上ssh登录家中树莓派
(例)ssh smallcat@2.tcp.vip.cpolar.cn -p 10669
前一篇:ssh