I want to connect via SSH from my computer to a specific container in my Raspberry Pi. The container already has ssh-server
and allows me to connect to it from the Pi but not from the computer. I have used statements to modify NAT as:
sudo iptables -t nat -A PREROUTING -p tcp -s 192.168.0.10/32 -i eth0 -j DNAT --to-destination 192.168.100.4
but it still does not work.
Any suggestions?