Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2009 05:33:44 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        freebsd-current@freebsd.org
Subject:   sshd failing in jail
Message-ID:  <20090824193344.GA34949@server.vk2pj.dyndns.org>

next in thread | raw e-mail | index | archive | help

--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I am attempting to build an i386 jail on an amd64 box to build
packages for my netbook.  The host is running -current from just over
two weeks ago and the jail is -current from early June.  The jail was
built by doing a dump|restore of my netbook and then tweaking various
config files to give it a new identity.  The jail's devfs is using
"devfsrules_jail" from /etc/default/devfs.rules.

The jail starts OK but when I attempt to ssh into it, I just get
"Connection closed by <jail IP address>".  Adding debugging on the
child, I see that it occurs immediately following:
"debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY".

Looking at a ktrace of the jailed sshd, the problem is inside the
privilege separation child.  When I turned off privilege separation, I
can log into the jail.  When I added a syslog socket inside the jailed
chroot and left privilege separation enabled, I got:
Aug 24 19:04:40 server sshd[70809]: error: buffer_put_bignum2_ret: BN too s=
mall
Aug 24 19:04:40 server sshd[70809]: fatal: buffer_put_bignum2: buffer error
Unfortunately, buffer_put_bignum2() is called from a number of locations
so the actual problem is not clear.

Looking at google doesn't turn up anything useful.

Does anyone have any suggestions?

--=20
Peter Jeremy

--XsQoSWH+UP9D9v3l
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkqS6xgACgkQ/opHv/APuIfeiACgr7jmr0kSN05RttT/Wn4386PO
1/IAoJaMcUVhz5rFycWQ4RzUu4XNJmXI
=hKG+
-----END PGP SIGNATURE-----

--XsQoSWH+UP9D9v3l--



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