From owner-freebsd-questions Mon Jan 17 17: 0:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ducky.nz.freebsd.org (chilled.unixathome.org [203.79.82.27]) by hub.freebsd.org (Postfix) with ESMTP id 2ACAC14FFE for ; Mon, 17 Jan 2000 17:00:42 -0800 (PST) (envelope-from dan@langille.org) Received: from wocker (wocker.int.nz.freebsd.org [192.168.0.99]) by ducky.nz.freebsd.org (8.9.3/8.9.3) with ESMTP id OAA39648; Tue, 18 Jan 2000 14:00:22 +1300 (NZDT) Message-Id: <200001180100.OAA39648@ducky.nz.freebsd.org> From: "Dan Langille" Organization: langille.org To: Roelof Osinga Date: Tue, 18 Jan 2000 14:00:17 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: OpenSSH 1.2.1 refusing incoming connections Reply-To: dan@langille.org Cc: "Crist J. Clark" , questions@FreeBSD.ORG In-reply-to: <3883B420.4AFF68E0@nisser.com> X-mailer: Pegasus Mail for Win32 (v3.12b) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 18 Jan 00, at 1:30, Roelof Osinga wrote: > Dan Langille wrote: > > > > The keys are there: > > > > # ls /usr/local/etc/ssh_host_key* > > /usr/local/etc/ssh_host_key /usr/local/etc/ssh_host_key.pub > > > > And both are non-zero in size and dated about the time I installed ssh > > (back in April 1999). > > Perhaps things changed in sshd_config? Mine also gives: > > == > SSH Version OpenSSH-1.2, protocol version 1.5. > Compiled with SSL. > debug: Reading configuration data /usr/local/etc/ssh_config > debug: ssh_connect: getuid 0 geteuid 0 anon 0 > debug: Connecting to localhost.eboa.com [127.0.0.1] port 22. > debug: Allocated local port 1015. > debug: Connection established. > debug: Remote protocol version 1.5, remote software version OpenSSH-1.2 > debug: Waiting for server public key. debug: Received server public key > (768 bits) and host key (1024 bits). == Mine shows: SSH Version OpenSSH-1.2.1, protocol version 1.5. Compiled with SSL. debug: Reading configuration data /usr/local/etc/ssh_config debug: ssh_connect: getuid 0 geteuid 0 anon 0 debug: Connecting to localhost [127.0.0.1] port 22. debug: Allocated local port 985. debug: Connection established. ssh_exchange_identification: read: No such file or directory debug: Calling cleanup 0x805359c(0x0) > > debug: Connection established. > > ssh_exchange_identification: read: No such file or directory > > So that does not look like a refused connection but indeed more like > some key or whatever that is nonexistent. Maybe the HostKey parameter > changed somehow? 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 Same problem. This time I did a ktrace (thanks Wyze): $ ktrace ssh localhost ssh_exchange_identification: read: No such file or directory $ kdump 39607 ktrace RET ktrace 0 39607 ktrace CALL readlink(0x280cdd84,0xbfbfd694,0x3f) 39607 ktrace NAMI "/etc/malloc.conf" 39607 ktrace RET readlink -1 errno 2 No such file or directory 39607 ktrace CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0) 39607 ktrace RET mmap 672014336/0x280e2000 39607 ktrace CALL break(0x804c000) 39607 ktrace RET break 0 39607 ktrace CALL break(0x804d000) 39607 ktrace RET break 0 39607 ktrace CALL execve(0xbfbfd79c,0xbfbfdc60,0xbfbfdc6c) 39607 ktrace NAMI "/sbin/ssh" 39607 ktrace RET execve -1 errno 2 No such file or directory 39607 ktrace CALL execve(0xbfbfd79c,0xbfbfdc60,0xbfbfdc6c) 39607 ktrace NAMI "/bin/ssh" 39607 ktrace RET execve -1 errno 2 No such file or directory 39607 ktrace CALL execve(0xbfbfd79c,0xbfbfdc60,0xbfbfdc6c) 39607 ktrace NAMI "/usr/sbin/ssh" 39607 ktrace RET execve -1 errno 2 No such file or directory 39607 ktrace CALL execve(0xbfbfd79c,0xbfbfdc60,0xbfbfdc6c) 39607 ktrace NAMI "/usr/bin/ssh" 39607 ktrace RET execve -1 errno 2 No such file or directory 39607 ktrace CALL execve(0xbfbfd79c,0xbfbfdc60,0xbfbfdc6c) 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" -- Dan Langille [I'm looking for more work] http://www.langille.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message