Link to home
Start Free TrialLog in
Avatar of mercury8001
mercury8001

asked on

changing the port on open SSH.

i have 2 systems that reside remotly. and i want to be able to SSH to both of them. the prblem is the router is can only forword one port to one system. is there a way to change the port on the second system to something other than the defalt. the system is runing slackware 10.2 with what ever ver of OpenSSH that distro ships with. anyone got any ideas?
thanx
ASKER CERTIFIED SOLUTION
Avatar of rindi
rindi
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A router can forward a single port to a single destination only, but the destination can usually include a custom port. What I mean is you can usually setup port forwarding on a router as:

Router_public_IP:3022 --> Server1:22
Router_public_IP:4022 --> Server2:22

If you can setup your router like this you don't need to change the port of openSSH on the server.