From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 08:47:08 2003 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 8A3F416A4B3 for ; Tue, 16 Sep 2003 08:47:08 -0700 (PDT) Received: from void.xpert.com (mailhost.xpert.com [199.203.132.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B83043F93 for ; Tue, 16 Sep 2003 08:47:00 -0700 (PDT) (envelope-from Yonatan@xpert.com) Received: from void.xpert.com (localhost [127.0.0.1]) by void.xpert.com (8.12.8/8.12.8) with ESMTP id h8GG9q1w017595 for ; Tue, 16 Sep 2003 19:09:52 +0300 Received: from EXCHANGE.xpert.com (exchange.xpert.com [199.203.132.135]) by void.xpert.com (8.12.8/8.12.8) with ESMTP id h8GG9prc017588; Tue, 16 Sep 2003 19:09:51 +0300 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Sep 2003 17:45:26 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: My jail can not ssh.. Thread-Index: AcN8Kx6cBmOPJsfYQvOpSnGnRY6VegAPxIjA From: "Yonatan Bokovza" To: , "maillist bsd" Subject: RE: My jail can not ssh.. 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: Tue, 16 Sep 2003 15:47:08 -0000 > -----Original Message----- > From: Pat Lashley [mailto:patl+freebsd@volant.org] > Sent: Tuesday, September 16, 2003 11:18 > To: freebsd-questions@freebsd.org; maillist bsd > Cc: freebsd-hackers@freebsd.org > Subject: Re: My jail can not ssh.. >=20 >=20 > --On Tuesday, September 16, 2003 09:07:15 +0100 Matthew Seaman=20 > wrote: >=20 > > On Tue, Sep 16, 2003 at 04:16:31AM +0800, maillist bsd wrote: > > > >> I am just testing jail on my FreeBSD4.8-stable box, i=20 > found i can not > >> ssh to the jail environment, but i can telnet to jail=20 > environment, the > >> sshd is running both inside and outside jail. What's the problem. > > > > I suspect that your problem is that the sshd(8) in your=20 > host and jail > > environments are both binding to IN_ADDR_ANY. That means=20 > both daemons > > are fighting over the loopback interface (at least). >=20 > Another subtle thing that can cause problem is if the jailed SSH > can't do DNS resolution. Telnet in and run your favorite DNS > query app (host, dnsip, dig, nslookup, etc.). If it fails, check > resolv.conf in the jail; and check the access controls on your > name server And yet another problem is that ssh needs /dev/[u]random. Try mounting devfs in the jail's /dev and see if it works for you. The error message is something along the line of "PRNG not initialized".