Subject: Re: running a second sshd
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: segv <segv@netctl.net>
List: netbsd-users
Date: 08/17/2005 17:20:25
On Wed, 17 Aug 2005 10:33:59 -0400
"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.
> 
> 		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb
> 
> 

cd /etc/rc.d
cp sshd sshd2

Then edit sshd2 and rename some 'sshd' to 'sshd2' and possibly other things,
like default config file, crypto keys, etc.

Then put 'sshd2=yes' is /etc/rc.conf
Second version of sshd would need to run on a different port, obviously