Date: Tue, 18 Jan 2000 22:39:58 +0100 From: Roelof Osinga <roelof@nisser.com> To: dan@langille.org 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: <3884DDAE.ECB9C583@nisser.com> References: <200001180100.OAA39648@ducky.nz.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <g>. Roelof -- Frisian products @ http://omutens.com/ 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?3884DDAE.ECB9C583>