From owner-freebsd-questions@freebsd.org Sat May 4 13:15:24 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64619158E4D2 for ; Sat, 4 May 2019 13:15:24 +0000 (UTC) (envelope-from freebsd@gregv.net) Received: from aurora.gregv.net (aurora.gregv.net [IPv6:2607:5600:bd::1:1000]) by mx1.freebsd.org (Postfix) with ESMTP id BBED78A2B1 for ; Sat, 4 May 2019 13:15:13 +0000 (UTC) (envelope-from freebsd@gregv.net) Received: by aurora.gregv.net (Postfix, from userid 1001) id 236EF61FAC; Sat, 4 May 2019 09:15:06 -0400 (EDT) Date: Sat, 4 May 2019 09:15:06 -0400 From: Greg Veldman To: "Dr. Nikolaus Klepp" Cc: freebsd-questions@freebsd.org Subject: Re: SSH to jail opens host? Message-ID: <20190504131506.GO42338@aurora.gregv.net> References: <201905040829.32960.dr.klepp@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201905040829.32960.dr.klepp@gmx.at> User-Agent: Mutt/1.11.2 (2019-01-07) X-Rspamd-Queue-Id: BBED78A2B1 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.45 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.98)[0.975,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gregv.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.996,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.gregv.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(1.00)[1.000,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmx.at]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:31863, ipnet:2607:5600::/32, country:US]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.48)[asn: 31863(2.48), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2019 13:15:24 -0000 On Sat, May 04, 2019 at 08:29:32AM +0200, Dr. Nikolaus Klepp wrote: > Anno domini 2019 Fri, 3 May 23:09:19 -0700 > Russell Haley scripsit: > > Hi, > > > > This is so embarrassing. I've got a bunch of jails that I created some time > > ago using iocell that work just fine. I've just tried to create a new jail > > and every time I try to ssh into it, instead of going to the jail, it takes > > me back to my host. > > > > I say I've created "a" new jail but I've tried this a couple of times now, > > each with a different ip4_addr. Does anyone know what stupid thing I have > > missed or done that would cause this? > > > > I can provide more background but I'm not sure what kind of background to > > give? Any suggestions would be grand. > > Just for clearification: ech jail has it's own address, all addresses are uniq, and the jails sshd is up and running? And you'll probably also want to set ListenAddress in the sshd_config on both the host and the jail(s) so that each daemon only listens on its own host IP. -- Greg Veldman freebsd@gregv.net