I have also used NAT and forwarding and it's working fine (but in my case I want cluster or Jenkins master and Jenkins slave that's why I have created network NAT).
I have created NAT network named NatnetworkLab in VirtualBox and I cannot connect to my machine using ssh client. I have already done the port forwarding. My machine have static IP addresses (10.0.2.1 and 10.0.2.2).
ssh between machine1 and machine2 works fine, but I would like use PuTTY to connect to my machines directly from my host machine (Windows 10) using PuTTY.
I have added rules:
- machine 1 127.0.0.1 2222 10.0.2.1 22
- machine 1 127.0.0.1 2223 10.0.2.2 22
I have of course tried to connect via PuTTY using 127.0.0.1 and port 2222 or 2223.