On Wed, Feb 21, 2001 at 02:33:35PM -0800, Jeremy Buchmann wrote:
I got a similar thing. For some reason, the build process isn't respecting the --sysconfdir configure option. Watch (warning: long script):
You omit the most significant information: the contents of your sshd_config file.
root@ws:/usr/src/openssh-2.5.1p1> ./configure --prefix=/usr/local --sysconfdir=/etc/ssh --with-tcp-wrappers --with-pam --with-ipv4-default
[logs for sysconf is /etc/ssh removed]
root@ws:/usr/src/openssh-2.5.1p1> date Wed Feb 21 14:16:04 PST 2001
root@ws:/usr/src/openssh-2.5.1p1> ls -l /usr/local/sbin/sshd -rwxr-xr-x 1 root root 664028 Feb 21 14:15 /usr/local/sbin/sshd*
root@ws:/usr/src/openssh-2.5.1p1> ls -l /etc/ssh/ total 60 -rw-r--r-- 1 root root 26287 Feb 21 13:50 primes -rw-r--r-- 1 root root 880 Feb 21 13:50 ssh_config -rw------- 1 root root 668 Feb 9 11:25 ssh_host_dsa_key -rw-r--r-- 1 root root 597 Feb 9 11:25 ssh_host_dsa_key.pub -rw------- 1 root root 522 Feb 9 11:25 ssh_host_key -rw-r--r-- 1 root root 326 Feb 9 11:25 ssh_host_key.pub -rw------- 1 root root 887 Feb 21 13:50 ssh_host_rsa_key -rw-r--r-- 1 root root 217 Feb 21 13:50 ssh_host_rsa_key.pub -rw-r--r-- 1 root root 628 Feb 21 13:50 sshd_config
At this point your sshd_config is dated 13:50 and your sshd is dated 14:15. sshd_config was not overwritten by make install (that's a good idea of install to take care of already installed configurations).
root@ws:/usr/src/openssh-2.5.1p1> /usr/local/sbin/sshd /usr/local/etc/ssh_host_key: No such file or directory error: Could not load host key: /usr/local/etc/ssh_host_key: No such file or directory Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. Please make sure that you don't have these paths configured in the config file.
Best regards, Lutz -- Lutz Jaenicke Lutz.Jaenicke@aet.TU-Cottbus.DE BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/ Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129 Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153