I’ve been trying (for some time…) to create an ssh tunnel between an Ubuntu Machine (M-1) and an embedded system (M-2).
The setup is the following:
M-2 is connected to a RUT901 router on LAN1.
M-1 is connected to WAN.
RUT901 is connected to WAN via 4G (public IP).
I have allowed remote SSH access to RUT901, and I can connect to it from M-1.
To connect remotely to M-2, I have created a port forwarding rule from WAN->LAN, and a firewall rule which allows the traffic through. However this fails - the ssh connection just stalls without any specific message.
Could you please provide a screenshot of your configured firewall port forwarding and traffic rules?
Additionally, is it possible that M-2’s firewall is blocking WAN traffic to port 22. Could you check if you can SSH into M-2 locally from the RUT901 using the following command?