Looking for a way to see a couple of PLC units behind a 4G router here in Australia I came across a post using Autossh a Raspberry Pi and tunneling. What a great concept. I have used tunneling quite successfully for years
Bought my first Pi and set it up on the bench at home.
It did its thing.
Took the PI to the workshop, plugged it in to the network, got home to see it polling and getting rejected at my firewall as expected. Opened up port 22 from that one address. WOW. Yep can tunnel back into the pi.
I dont normally have port 22 open as a rule and use non standard ports for my SSH and this is where I seem to run into problems. I cannot find how I get Autossh to use something other than port 22 for the middleman connection.
As my last parameter of my
autossh line I have firstname.lastname@example.org
I have tried
email@example.com -p port
But neither of these seem to work. Unsure if I have it incorrect or if the ports I have tried are blocked in the route to my base system.
Can someone that uses unusual ports point me in the correct direction please?