From owner-freebsd-questions Tue Jan 18 13:40: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c1870039.telekabel.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 2C7D214E42 for ; Tue, 18 Jan 2000 13:40:04 -0800 (PST) (envelope-from roelof@nisser.com) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id WAA60393; Tue, 18 Jan 2000 22:39:49 +0100 (CET) (envelope-from roelof@nisser.com) Message-ID: <3884DDAE.ECB9C583@nisser.com> Date: Tue, 18 Jan 2000 22:39:58 +0100 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: dan@langille.org Cc: "Crist J. Clark" , questions@FreeBSD.ORG Subject: Re: OpenSSH 1.2.1 refusing incoming connections References: <200001180100.OAA39648@ducky.nz.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Langille wrote: > > ... > OK. I just moved the following files to a safe location: > > [root@ducky:/usr/local/etc] # ls -ld ssh* > -rw-r--r-- 1 root wheel 879 Jan 17 20:03 ssh_config > -rw------- 1 root wheel 538 Apr 25 1999 ssh_host_key > -rw-r--r-- 1 root wheel 342 Apr 25 1999 ssh_host_key.pub > -rw------- 1 root wheel 512 Dec 13 23:32 ssh_random_seed > -rw-r--r-- 1 root wheel 1212 Jan 17 20:03 sshd_config > > Then I did a pkg_delete OpenSSH-1.2.1 > then a reinstall of OpenSSH-1.2.1 > ... Should solve that aspect. Besides, I just tried it and those errors get logged: nisser:/home/www/Slak$ grep ssh /var/log/messages Jan 18 20:55:21 nisser sshd[90159]: error: Could not load host key: /usr/local/samba/ssh_host_key: No such file or directory Too bad the ktrace doesn't log the function parameters. Perhaps "ktrace -i -ti" does? Or a debug session? Or maybe it does, your trace stopped short of the interesting stuff: > 39607 ktrace NAMI "/usr/games/ssh" > 39607 ktrace RET execve -1 errno 2 No such file or directory > 39607 ktrace CALL execve(0xbfbfd79c,0xbfbfdc60,0xbfbfdc6c) > 39607 ktrace NAMI "/usr/local/bin/ssh" > 39607 ktrace NAMI "/usr/libexec/ld-elf.so.1" All those execve errors refer to the system trying all dirs in your PATH. The last one (NAMI "/usr/local/bin/ssh") succeeds. So at that point ssh gets executed and your trace seemingly stops. Anyway, looks like the NAMI entries are the parameters after all . Roelof -- Frisian products @ http://omutens.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message