加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

使用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

0

阅读 收藏 喜欢 打印举报/Report
前一篇:ssh
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有