Solved

changing the port on open SSH.

Posted on 2006-06-17
2
373 Views
Last Modified: 2010-05-18
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
Comment
Question by:mercury8001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 88

Accepted Solution

by:
rindi earned 100 total points
ID: 16928562
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
 
LVL 16

Expert Comment

by:Blaz
ID: 16931978
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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question