Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Ssh Question, SSH on different ports
arbok
post Aug 7 2003, 01:12 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 7
Joined: 7-August 03
Member No.: 1,220



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
Go to the top of the page
 
+Quote Post
Joey
post Aug 7 2003, 01:21 PM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



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.
Go to the top of the page
 
+Quote Post
Joey
post Aug 7 2003, 04:02 PM
Post #3


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 08:43 AM