Subject: Re: running a second sshd
To: Jan Schaumann <jschauma@netmeister.org>
From: segv <segv@netctl.net>
List: netbsd-users
Date: 08/17/2005 17:28:46
On Wed, 17 Aug 2005 12:24:03 -0400
Jan Schaumann <jschauma@netmeister.org> wrote:

> "Steven M. Bellovin" <smb@cs.columbia.edu> wrote:
> > Given the rc.d structure, what is the cleanest way to run a second copy 
> > of sshd with a different configuration file?  The machine in question 
> > is running 2.0.2, if that matters.
> 
> I added
> 
> /usr/sbin/sshd -f /etc/ssh/<configfile>
> 
> to /etc/rc.local
> 
> Dunno if that's the cleanest way.
> 

But then if you want to stop one sshd processes, you'd need to figure out which
one is which, and if it's the one that was started from /etc/rc.local you can't
just do /etc/rc.d/sshd<id_number> stop You'd have to issue a kill on a pid