Date: Tue, 18 Jan 2000 14:00:17 +1300 From: "Dan Langille" <dan@langille.org> To: Roelof Osinga <roelof@nisser.com> Cc: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>, questions@FreeBSD.ORG Subject: Re: OpenSSH 1.2.1 refusing incoming connections Message-ID: <200001180100.OAA39648@ducky.nz.freebsd.org> In-Reply-To: <3883B420.4AFF68E0@nisser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001180100.OAA39648>