From owner-freebsd-questions@FreeBSD.ORG Thu Feb 17 16:03:50 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFFA616A4CE for ; Thu, 17 Feb 2005 16:03:50 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D40743D39 for ; Thu, 17 Feb 2005 16:03:49 +0000 (GMT) (envelope-from emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 17 Feb 2005 16:03:47 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) (62.245.232.135) by mail.gmx.net (mp014) with SMTP; 17 Feb 2005 17:03:47 +0100 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Thu, 17 Feb 2005 17:03:33 +0100 User-Agent: KMail/1.7.2 References: In-Reply-To: X-Birthday: 10/06/72 X-CelPhone: +49 173 9967781 X-Tel: +49 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1285491.L06C193JFG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502171703.38464@harrymail> X-Y-GMX-Trusted: 0 cc: musikcom@ngs.ru Subject: Re: Trouble with sshd in jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 16:03:50 -0000 --nextPart1285491.L06C193JFG Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Mittwoch, 16. Februar 2005 16:35 schrieb musikcom@ngs.ru: [...] > Then I start jail: > > #jail /jail testhost 161.66.11.2 /bin/sh /etc/rc > > Two problems: then jail startup, the message "Starting > sshd..." stops for 10 min. That's one. Then booting This is because the sshd startupscript generates keypairs if they are missi= ng.=20 And for that it waits to enter some random data which leads to that long=20 timeout even on a fast machine. > proccess continies and finish successfull. Second problem > is when I try to connect to jail (161.66.11.2) with ssh > client. > ---Connect 161.66.11.2... > ---Login as: root > AND STOPS!!! For 7-10 min. Than "password" field appears, > but I have wait so much time... This is because sshd tries to resolve addresses of connected hosts. =46ix your DNS or edit /etc/hosts accordingly. =2DHarry --nextPart1285491.L06C193JFG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCFMBaBylq0S4AzzwRApXWAKCFtJSC3oOA0E+/XccLPE/dU3phwQCgjNYg piUxmzS0kWar2Uh0N98CqwM= =MXOx -----END PGP SIGNATURE----- --nextPart1285491.L06C193JFG--