Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2016 08:52:59 -0700
From:      markham breitbach <markham@ssimicro.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Closed port 22 in the jail redirects to the outer system
Message-ID:  <e28ad23b-1a55-c23a-de30-8738302cd9ca@ssimicro.com>
In-Reply-To: <20161207002440.GA26711@becker.bs.l>
References:  <20161207002440.GA26711@becker.bs.l>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-12-06 5:24 PM, Bertram Scharpf wrote:
>
> How can I make a port 22 request fail if an SSH server is
> running on the outer machine but not inside the jail?
>
>
>
By default sshd on the jail host (outer machine) will bind to all
available addresses.  You can just set the listenAddress for sshd to be
the IP address that you want it to listen to in /etc/ssh/sshd_config and
restart sshd.

-M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e28ad23b-1a55-c23a-de30-8738302cd9ca>