From owner-freebsd-questions@FreeBSD.ORG Thu Feb 17 09:21:08 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 666DC16A4CE for ; Thu, 17 Feb 2005 09:21:08 +0000 (GMT) Received: from www.wcborstel.nl (wcborstel.demon.nl [82.161.134.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6488D43D2F for ; Thu, 17 Feb 2005 09:21:05 +0000 (GMT) (envelope-from jorn@wcborstel.nl) Received: from localhost (localhost [127.0.0.1]) by www.wcborstel.nl (Postfix) with ESMTP id A4574425D; Thu, 17 Feb 2005 10:23:21 +0100 (CET) Received: from www.wcborstel.nl ([127.0.0.1]) by localhost (www.wcborstel.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01450-09; Thu, 17 Feb 2005 10:23:15 +0100 (CET) Received: from www.wcborstel.nl (localhost [127.0.0.1]) by www.wcborstel.nl (Postfix) with ESMTP id 7E68B40B6; Thu, 17 Feb 2005 10:23:15 +0100 (CET) From: "Jorn Argelo" To: ANISH MISTRY , musikcom@ngs.ru Date: Thu, 17 Feb 2005 10:23:15 +0100 Message-Id: <20050217091649.M4629@wcborstel.nl> In-Reply-To: <74830074dd4b.74dd4b748300@osu.edu> References: <74830074dd4b.74dd4b748300@osu.edu> X-Mailer: Open WebMail 2.50 20050106 X-OriginatingIP: 193.172.19.20 (jorn) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: by amavisd-new at mail.wcborstel.nl cc: freebsd-questions@freebsd.org Subject: Re: Trouble with sshd in jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 09:21:08 -0000 On Wed, 16 Feb 2005 11:18:40 -0500, ANISH MISTRY wrote > Do you have your resolv.conf and hosts file setup correctly in the > jail? I had the same problem yesterday when I moved my jailed > system to a new network. Or you can just ssh to your host machine and execute the following command: jexec /path/to/your/shell Cheers, Jorn > > -- > Anish Mistry > > ----- Original Message ----- > From: musikcom@ngs.ru > Date: Wednesday, February 16, 2005 10:35 am > Subject: Trouble with sshd in jail > > > I have some trouble with sshd in jail. This is description > > of the problem: > > > > I have host system based on FreeBSD 5.1 Release with IP > > 161.66.11.1 Futher I do these steps for creating jail on > > host system: > > > > cd /usr/src > > mkdir -p /jail > > make world DESTDIR=/jail > > cd etc > > make distribution DESTDIR=/jail > > mount_devfs devfs /jail/dev > > cd /jail > > ln -sf dev/null kernel > > > > OK. That's easy. Next step I edit /etc/rc.conf by > > adding/editing some lines: > > > > sendmail_enable="NO" > > sshd_enable="YES" > > syslogd_flags="-ss" > > > > and /etc/ssh/sshd_config : > > > > ListenAddress 161.66.11.1 > > > > OK. I do #sockstat and get only: > > > > root sendmail 361 4 tcp4 127.0.0.1:25 *:* > > root sshd 355 3 tcp4 161.66.11.2:22 *:* > > > > After this doing alias for jail: > > > > #ifconfig em0 alias 161.66.11.2 > > > > Then I start jail: > > > > #jail /jail testhost 161.66.11.2 /bin/sh /etc/rc > > > > Two problems: then jail startup, the message "Starting > > sshd..." stops for 10 min. That's one. Then booting > > proccess continies and finish successfull. Second problem > > is when I try to connect to jail (161.66.11.2) with ssh > > client. > > ---Connect 161.66.11.2... > > ---Login as: root > > AND STOPS!!! For 7-10 min. Than "password" field appears, > > but I have wait so much time... > > > > That's the problem. Please, help if you can! > > Thank you!!! > > --------------------------------------------------------- > > http://mobile.ngs.ru/games - Java-???? ??? ??????????? ? ?? ??????... > > http://love.ngs.ru - ?????????? ? ???????????? > > > > > > > > > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions- > > unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"