LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2009, 12:30 PM   #1
slushing
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Smile How to setup up 2 ssh daemon with different ports


I would like to know how to setup 2 ssh daemon so that each ssh is running on a different port.

For example
My primary ssh will be running at port 22 and at the same time I want another ssh daemon to run on another port (say 5010). Is this possible.
 
Old 09-02-2009, 01:52 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by slushing View Post
I would like to know how to setup 2 ssh daemon so that each ssh is running on a different port.

For example
My primary ssh will be running at port 22 and at the same time I want another ssh daemon to run on another port (say 5010). Is this possible.
Yep. Read the man page for sshd, and pay particular attention to the "-f" option. Also read the man page for sshd_config.

Create another sshd_config file, configured how you'd like it, and fire up the new instance of sshd using it.
 
Old 09-03-2009, 01:10 AM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,117
Blog Entries: 2

Rep: Reputation: 113Reputation: 113
You don't need to run multiple daemons, you can just specify the Port option multiple times in your sshd_config, once for each port you want the daemon to listen on.
 
Old 09-03-2009, 01:14 AM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Out of curiosity, OP, why do you want to do this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Daemon to read from com ports bzzz Programming 4 02-02-2008 01:52 PM
help to setup the cvs daemon eduac *BSD 1 03-18-2005 10:38 PM
SSH daemon under AIX5 NOTORIOUS VR AIX 13 03-11-2005 02:23 PM
ssh daemon colors? daryl314 Linux - Software 4 01-25-2005 12:13 PM
Solaris 9 and SSH Daemon g_goblin Solaris / OpenSolaris 3 11-05-2003 02:36 AM


All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration