Help - Search - Members - Calendar
Full Version: Ssh Question
Linuxhelp > Support > Technical Support
Hey, i was wondering how to set up a RedHat box so that it accepts SSH on several ports, the default port (22) and on the 1863 port unsure.gif

I'm not sure if this can be done regularly. You might have to run 2 instances of SSH on the server, one listening on port 22 and the other on port 1863.

I suppose you could also create a firewall rule that would automatically forward connections on port 1863 to port 22.
Hey i was wondering if you could tell me how to create the two instances of ssh, one listening on 22 and the other one on 1863 laugh.gif


Download the source -, unpack it and go into the newly created directory.


./configure --prefix=/usr/local/ssh2-22 --with-etcdir=/usr/local/ssh2-22/etc
make install

Then run
./configure --prefix=/usr/local/ssh2-1863 --with-etcdir=/usr/local/ssh2-1863/etc
make install

This should install the SSH daemon in /usr/local/ssh2-22 and /usr/local/ssh2-1863

To fire up SSH on port 22 run


You then have to edit

/usr/local/ssh2-1863/etc/sshd2_conf and change the port number to 1863

You should then be able to run sshd2 on 1863 by running


Keep in mind I've never done this and I'm just assuming this will work.

Have fun.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.