Hi so we have multiple machines on our network running ssh on port 22, because of this we set up port forwarding in the router as 22->22 for one of the machines and 222->22 on the other machine. The one that is set up to be 222 for the outside world will not allow us to connect to the machine unless its outside port is also 22 thus making us disable outside access to the first machine. Is there some sort of config that disables access for this type of situation?
Desired Functionality:
Outside----P22----->router-----P22----->Machine1 (Currently Works)
Outside----P222---->router-----P22----->Machine2 (Returns Connection Refused)
Only port 22 on the outside to either machine (with the other disabled) has worked so far.
Router: Linksys E2500
machine 1
in this situation is set up to be accessed through our router from the outside on port 22.machine 2
is set up to use 222 from the outside and the router should deliver it on the inside to 22 to the correct server. When I try to connect tomachine 2
when it is set to use 222 I get a connection refused from putty, however if I temporarily disablemachine 1
and changemachine 2
to use 22 on the outside instead of 222 I can connect just fine tomachine 2
machine 2
frommachine 1
using port 222?