Date: Thu, 3 May 2001 07:46:53 +0300 From: Odhiambo Washington <wash@wananchi.com> To: Bill Hickum <yh2789@yahoo.com> Cc: FBSD-Q <freebsd-questions@freebsd.org> Subject: Re: SSH hesitation after hostmane change Message-ID: <20010503074653.C60915@everest.wananchi.com> In-Reply-To: <20010502173002.31928.qmail@web10906.mail.yahoo.com>; from "Bill Hickum" on Wed, May 02, 2001 at 10:30:02AM -0700 References: <20010502192222.P91358@everest.wananchi.com> <20010502173002.31928.qmail@web10906.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Bill Hickum <yh2789@yahoo.com> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010503074653.C60915>