In either mode (inetd or standalone) I believe you can set the default
ports for each to different port numbers (e.g, sshd1 default port=22,
sshd2 default port=24).  You establish these defaults in the ssh config
files and in /etc/services.  Then each one runs simultaneously, looking
for connection requests on separate ports. The caveat is...remote clients
wishing to connect via the version that is *not* set to the standard
default port (22) must use the "-p" option in their connection command to
specify the port number of the host daemon, e.g., "ssh(1 or 2) -p 24
remote.host.com".

Of course, when you configure sshd2 to call on sshd1 when needed, port
specification by clients is unnecessary.  Do you get a big performance hit
from sshd2 calling on sshd1?  Is that the reason you do not prefer this
method?


Regards,

Chris

         ###############################################################
         #                      Chris Vandersip                        #
         #        Computer Research Specialist/Dept. Sysadmin          #
         #  Rm. 024, Dept. of Meteorology, Florida State University    #
         #          [EMAIL PROTECTED]   (850)644-2522                #
         ###############################################################

On Sun, 7 Nov 1999, Auteria Wally Winzer Jr. wrote:

> Is there a way of running both sshd1 and sshd2 daemons simultaneously?
> Also, I'm looking for an optimal way of configuring both daemons to run
> together and not degregate overall system performance.  I don't want to
> run one daemon from inetd while the other runs standalone.
> 
> I know of sshd2 calling on ssh1d for backward compatibility if I'm only
> running sshd2, so I'm not looking for that option (if possible).
> 
> Any help is greatly appreciated.
> 
> - Wally Winzer Jr.
> 

Reply via email to