Solved

changing the port on open SSH.

Posted on 2006-06-17
2
337 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now