Help - Search - Members - Calendar
Full Version: Ssh Question
Linuxhelp > Support > Technical Support
arbok
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

Thnx
Joey
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.
Joey
QUOTE
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

Thnx


Download the source - ftp://ftp.ssh.com/pub/ssh/ssh-3.2.5.tar.gz, unpack it and go into the newly created directory.

run:

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

Then run
./configure --prefix=/usr/local/ssh2-1863 --with-etcdir=/usr/local/ssh2-1863/etc
make
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

/usr/local/ssh2-22/sbin/sshd2

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

/usr/local/ssh2-1863/sbin/sshd2

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-2017 Invision Power Services, Inc.