From owner-freebsd-questions Wed May 2 21:48:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (everest.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id DA92237B422 for ; Wed, 2 May 2001 21:48:17 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 14vB0v-000GO9-00; Thu, 03 May 2001 07:46:53 +0300 Date: Thu, 3 May 2001 07:46:53 +0300 From: Odhiambo Washington To: Bill Hickum Cc: FBSD-Q Subject: Re: SSH hesitation after hostmane change Message-ID: <20010503074653.C60915@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , Bill Hickum , FBSD-Q References: <20010502192222.P91358@everest.wananchi.com> <20010502173002.31928.qmail@web10906.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010502173002.31928.qmail@web10906.mail.yahoo.com>; from "Bill Hickum" on Wed, May 02, 2001 at 10:30:02AM -0700 X-Operating-System: FreeBSD everest.wananchi.com 4.3-STABLE FreeBSD 4.3-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Nairobi, KE, East Africa. X-Uptime: 7:38AM up 5 days, 21:41, 4 users, load averages: 0.10, 0.08, 0.02 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Bill Hickum [20010502 20:29]: writing on the subject '= Re: SSH hesitation after hostmane change' Bill>=20 Bill> >=20 Bill> > Please go into /etc/ssh/ and delete any file ending Bill> > with *key and *.pub Bill> > and reboot. It will generate new host keys Bill> > associated with the new name, Bill> > which i hope is already set in hostname=3D"whatever" Bill> > in rc.conf Bill> > After that let us know if the behaviour is still the Bill> > same. Bill> >=20 Bill>=20 Bill> Sounds like you would like the details. Bill>=20 Bill> Yes, I changed the hostname in rc.conf and did this Bill> thing I saw to do in the book: hostname -s Bill> new.host.name (whatever that's for). =46rom the manpage of hostname, what the -s option does is that instead of printing the FQDN (Fully Qualified Domain Named), e.g. hostname+domain_name, it would only give the host part. My box here is called everest.wananchi.com hostname -s would give 'everest' to std output. Bill> 2 weeks ago when I first changed the hostname, and the Bill> hesitation began, I guessed that letting it rebuild Bill> the key and .pub files might fix this but it didn't. I Bill> know I did it correctly because I didn't rm them I mvd Bill> them to a subdirectory and they're still there. Okay. I believe that would do the same thing as deleting them but I am not sure. Maybe the daemon checks for keys in /etc/ssh and might descend the whole hierarchy....deleting sounds more appealing to me than moving... Bill> I just followed your advice and rm-ed them and Bill> rebooted. THE first time I logged in from a remote Bill> machine with ssh it was instantaneous. Because I tried Bill> this before with no luck I was suspicious. This Bill> suspicion led to my logging off and on a few more Bill> times. The hesitation was back. It was only fast the Bill> first time after rm-ing the files. When these changes occur, we'd always expect the hesitation, and even the 'man in the middle' warning but it is nice to first do rm -rf .ssh/ from your home directory. Bill> I tried it again but it was slow from the get-go. Bill> Every logon now is slow again. Please tell me that you have your /etc/hosts file and /etc/resolv.conf properly set, so that it is not ssh delay but rather a delay consequent upon Name Resolution.......because I do not see any good reason why it would the fast the 1st time then decide to go-slow again. Okay I am not a ssh expert (I am just another jack out here), so the -questions list might prove more helpful. Regards -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286, 00100-NAIROBI,KE. Yes, but which self do you want to be? --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE68OK9n7LIsuxjem8RAroaAJoDBg0MyM2086OxweXbAYJS6EQDcACfWFZG pkHvvhXKqQgWYQsFOJaMaVU= =D9CV -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message