From owner-freebsd-stable Wed Jul 17 7:45: 7 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FD5837B400 for ; Wed, 17 Jul 2002 07:45:04 -0700 (PDT) Received: from frontend2.aha.ru (bird.zenon.net [213.189.198.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id EADC243E42 for ; Wed, 17 Jul 2002 07:45:02 -0700 (PDT) (envelope-from uitm@zenon.net) Received: from [195.2.83.132] (HELO backend2.aha.ru) by frontend2.aha.ru (CommuniGate Pro SMTP 3.5.9) with ESMTP id 129862445; Wed, 17 Jul 2002 18:45:01 +0400 Received: from uitm.zenon.net ([195.2.69.86] verified) by backend2.aha.ru (CommuniGate Pro SMTP 3.5.9) with ESMTP id 24791181; Wed, 17 Jul 2002 18:45:01 +0400 From: Andrey Alekseyev Message-Id: <200207171445.g6HEj1J35604@uitm.zenon.net> Subject: Re: slow ssh connection speed(bind problem?) In-Reply-To: <20020717143012.GA19247@palomine.net> from Chris Johnson at "Jul 17, 2002 10:30:12 am" To: Chris Johnson Date: Wed, 17 Jul 2002 18:45:01 +0400 (MSD) Cc: Tai-hwa Liang , freebsd-stable@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Copying resolv.conf (and probably login.conf) into /var/empty/etc is not so unnecessary anyway, because of sshd-net process trying to resolve ip address of a client. Without resolv.conf there you get errors on resolving ip to name -- just perform the following: mkdir -p /var/empty/var/run ln /var/run/log /var/empty/var/run/log and turn on debug logging for sshd > One solution I've found is this: > > # chflags noschg /var/empty > # mkdir /var/empty/etc > # cp /etc/resolv.conf /var/empty/etc > # chflags schg /var/empty > > I don't know if there are security (or any other) implications to this, but it > fixes the problem in any case. > > Chris Johnson [application/pgp-signature is not supported, skipping...] -- Andrey Alekseyev. Zenon N.S.P. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message