Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2003 09:07:15 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        maillist bsd <bsdmaillist@yahoo.com.hk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: My jail can not ssh..
Message-ID:  <20030916080715.GA35605@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20030915201631.10323.qmail@web9506.mail.yahoo.com>
References:  <20030915201631.10323.qmail@web9506.mail.yahoo.com>

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

--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 found i can not ssh=
 to the jail environment, but i can telnet to jail environment, the sshd is=
 running both inside and outside jail.  What's the problem.

This is freebsd-questions@... material, rather than freebsd-hackers@...

I suspect that your problem is that the sshd(8) in your host and jail
environments are both binding to IN_ADDR_ANY.  That means both daemons
are fighting over the loopback interface (at least).

Cure is to tell sshd which interfaces to bind to explicitly.  So,
assuming your host environment uses 192.168.0.1 and your jail uses
192.168.0.2, then add:

    ListenAddress 127.0.0.1
    ListenAddress 192.168.0.1
    ListenAddress ::1

to /etc/ssh/sshd_config in the host environment, and=20

    ListenAddress 192.168.0.2

to /etc/ssh/sshd_config in the jail environment.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--2fHTh5uZTiUOsy+g
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/ZsSzdtESqEQa7a0RAocVAJ0c67OgkzvkdwJqhzEZNquSXUqUYACeIl4u
32EWngvbVpc4V+57ndwSPuw=
=zKeq
-----END PGP SIGNATURE-----

--2fHTh5uZTiUOsy+g--



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