• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

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
0
mercury8001
Asked:
mercury8001
1 Solution
 
rindiCommented:
In /etc/ssh/sshd_config you can change the port to one you like (default is 22). Don't forget to restart the sshd daemon after you have changed that.
0
 
BlazCommented:
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.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now