Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2003 17:45:26 +0200
From:      "Yonatan Bokovza" <Yonatan@xpert.com>
To:        <freebsd-questions@freebsd.org>, "maillist bsd" <bsdmaillist@yahoo.com.hk>
Subject:   RE: My jail can not ssh..
Message-ID:  <C2DC75EEA405354AA9C03EF5CB8CDE089AAB71@exchange.xpert.com>

next in thread | raw e-mail | index | archive | help
> -----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
> <m.seaman@infracaninophile.co.uk> 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".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C2DC75EEA405354AA9C03EF5CB8CDE089AAB71>