Answer the question
In order to leave comments, you need to log in
How to control multiple Raspberry pi connected to different routers via ssh (or other way)?
There are several Raspberry pi connected to different routers, and there is a laptop that is also connected to its own router, how can you manage Raspberry connected to different routers from a laptop via ssh (or other way)? The main task is parallel work, i.e. I enter the command to start the video from the laptop, after the video it starts simultaneously on all Raspberries.
Answer the question
In order to leave comments, you need to log in
Virus bot writers use something like this:
I looked at the diagram.
If raspberries from different subnets do not ping each other, then you must first configure the routing. As an option, on the main router (which is Internet) register along a static route to each subnet. Each route specifies the IP space of the network (for example, for a subnet mask of 255.255.255.0, it can be 192.168.0.0, 192.168.1.0, 192.168.2.0, etc.), the subnet mask, and as the gateway, the IP address of the router (in router network), on which the described subnet hangs. NAT on routers other than the main one must be turned off.
After the "visibility" of the raspberries among themselves is ensured, the control machine will also see them, and you can begin to solve the main problem. There are already many different options available. For example, raspberries themselves periodically knock on the control web server, where they somehow put commands that need to be executed, take these commands and execute them. Or the control machine kicks each raspberry in turn and tells it what to do. If we are only talking about video playback, I would probably try to put a small server for distributing a video stream on the network and set up a connection to this server (for example, a browser) to automatically download raspberries and show what it outputs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question