From owner-freebsd-questions@FreeBSD.ORG Wed Feb 16 15:35:46 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 3CCD516A4CE for ; Wed, 16 Feb 2005 15:35:46 +0000 (GMT) Received: from intranet.ru (intranet.ru [212.164.71.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4D3B43D41 for ; Wed, 16 Feb 2005 15:35:39 +0000 (GMT) (envelope-from musikcom@ngs.ru) Received: from [172.16.1.1] (HELO mx1.intranet.ru) by intranet.ru (CommuniGate Pro SMTP 4.2.4) with ESMTP id 197275104 for freebsd-questions@freebsd.org; Wed, 16 Feb 2005 21:35:28 +0600 Received: from [194.226.86.5] (account musikcom@ngs.ru) by mx1.intranet.ru (CommuniGate Pro WebUser 4.2.4) with HTTP id 18799226 for freebsd-questions@freebsd.org; Wed, 16 Feb 2005 21:35:28 +0600 From: musikcom@ngs.ru To: freebsd-questions@freebsd.org X-Mailer: CommuniGate Pro WebUser Interface v.4.2.4 Date: Wed, 16 Feb 2005 21:35:28 +0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-R"; format="flowed" Content-Transfer-Encoding: 8bit Subject: 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: Wed, 16 Feb 2005 15:35:46 -0000 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 - Знакомства в Новосибирске