My client has two Linux (Ubuntu) servers, which are accessible via SSH remotely, having set up the correct port forwarding in their ADSL router and using DynDNS to track the WAN IP Address.
External port 101 goes goes to internal port 81 and IP address 192.168.0.101 (the LAN IP address of server 1)
External port 102 goes goes to internal port 82 and IP address 192.168.0.102 (the LAN IP address of server 2).
There is now a requirement to have a second LAN, with its own router but the same subnet (192.168.0.x) and for the two servers to sometimes be on that second LAN, but still be able to SSH in remotely.
WAN2 of the LAN2 router is connected to LAN1 enabling LAN2 users to access the internet (as LAN2 does not have independent internet access). The WAN2 interface has an IP alias of 192.168.0.3 , set in the router for LAN2.
But with that configuration, trying to SSH into the servers remotely does not work. I can get the SSH log-on dialogue and can enter the user name and password OK but it just says "access denied".
Can any one offer any help? Basically I want to be able to SSH remotely via the ADSL/router on LAN1, over the LAN/WAN interface to LAN2 and then onto the Ubuntu servers (192.168.0.101 and 192.168.0.102 on LAN2).