这是前些时候提的问题:如何从外网访问国内的Raspberry Pi,提上来反馈一下。
还是没能直接访问国内的Raspberry Pi,不过找到一个迂回的方法,就是叫我的朋友执行这个命令:
ssh -R 2222:localhost:22 pi@x.x.x.x
x.x.x.x是我的动态IP地址(虽说动态,也是好几年没变了),这样我只要执行这个命令就可以访问他家的Raspberry Pi了。
ssh -p 2222 pi@localhost
这是前些时候提的问题:如何从外网访问国内的Raspberry Pi,提上来反馈一下。
还是没能直接访问国内的Raspberry Pi,不过找到一个迂回的方法,就是叫我的朋友执行这个命令:
ssh -R 2222:localhost:22 pi@x.x.x.x
x.x.x.x是我的动态IP地址(虽说动态,也是好几年没变了),这样我只要执行这个命令就可以访问他家的Raspberry Pi了。
ssh -p 2222 pi@localhost
•
有机会自动化一下,省些麻烦
-slow_quick-
♂
(0 bytes)
()
10/21/2024 postreply
06:09:02
•
已经设置了cron job,这样即使重启就不用再麻烦朋友了。
-chirolike-
♂
(0 bytes)
()
10/21/2024 postreply
11:47:31
•
那你要开放这边的路由器的防火墙。两边必开一边,2选1
-hot_powerz-
♂
(0 bytes)
()
10/21/2024 postreply
08:38:05
•
我这边的防火墙当然开着的。
-chirolike-
♂
(138 bytes)
()
10/21/2024 postreply
11:55:52
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy