Solved

changing the port on open SSH.

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

12 Experts available now in Live!

Get 1:1 Help Now