I have a bunch of devices (raspberry pies) which are located in different buildings and networks and are constantly sending me some data. I need a way to be able to ssh to the devices. I am thinking of creating VPN, where all these devices will be connected prior to sending data; in such a way, every one of them will have private IP and I will be able to ssh to it in my VPN network. Assuming this is true (correct me if not), how could I identify which device is which if I just see a bunch of connected IPs?
I thought to use a preconfigured static IP for every device before connecting it to VPN. Would that work?
Is there any other better solution?