Subject: Re: running a second sshd
To: segv <segv@netctl.net>
From: Stefan 'Kaishakunin' Schumacher <stefan@net-tex.de>
List: netbsd-users
Date: 08/17/2005 21:19:45
--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Also sprach segv (segv@netctl.net)
> On Wed, 17 Aug 2005 12:24:03 -0400
> Jan Schaumann <jschauma@netmeister.org> wrote:
>=20
> > I added
> >=20
> > /usr/sbin/sshd -f /etc/ssh/<configfile>
> >=20
> > to /etc/rc.local
> >=20
> > Dunno if that's the cleanest way.
> >=20
>=20
> 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

That's easy with ps:

stefan@hiwi-ifph {1} ps -ax | grep -i sshd
286 ? Ss  0:00.06 /usr/pkg/sbin/sshd=20
306 ? IWs 0:00.16 /usr/pkg/sbin/sshd -p 50000 -f /etc/ssh/sshd_zwei

--=20
PGP FPR: CF74 D5F2 4871 3E5C FFFE 0130 11F4 C41E B3FB AE33
--=20
Der Geist des Kriegers sollte mit Beginn des Neujahrstages bis zum Ende=20
des Jahres vom Gedanken an seinen Tod beherrscht werden.

Daijouji Shigesuke in "Budo Shoshin Shuu"

--mP3DRpeJDSE+ciuQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDA43QEfTEHrP7rjMRAj2ZAKCjq4XmvAt5P82QS1JCaqObrUJaXgCfQmer
q8d34Eag4ZO9tOT/pK8UOTs=
=iyL4
-----END PGP SIGNATURE-----

--mP3DRpeJDSE+ciuQ--