Sirs:
Trying to update OpenSSH to version openssh-6.6p1 using openssl-1.0.1g and
zlib-1.2.3. Updating both openssl and openssh at same time. Have been running
openssh on Solaris 8 machines for years.
Has occurred on 3 mahines:
After "compiling" openssh, try to start: /opt/openssh/sbin/sshd
Get error:
Could not load host key: /opt/openssh-5.0p1/etc/ssh_host_rsa_key
Could not load host key: /opt/openssh-5.0p1/etc/ssh_host_dsa_key
Disabling protocol version 2. Could not find host key
sshd: no host keys available -- exiting
openssh-5.0.p1 is what I am replacing. How/where is software getting reference
to software that I cannot find on machine? I am deleting installed zlib, openssl
& openssh before I start new installation.
My install script looks like
zlib:
configure
make test
make install prefix=/opt/zlib-1.2.3
openssl:
config --prefix=/opt/openssl-1.0.1g
make
make test
make install
openssh:
configure --prefix=/opt/openssh-6.6p1 --without-zlib-version-check
--with-ssl-dir=/opt/openssl-1.0.1g
make
make install
set ssh{d}_config files as I want them
setup privsep
attempt to start "sshd" which fails
I have a script file which I use for these actions; have used script for years
only updating version of software
Your assistance/aid will be greatly appreciated. Thank you.
James
James M Carter, PhD
ES31 / Sensors, Imaging & Optics Branch
Optics Team/Team Lead
Bldg 4487 Rm B-117
Marshall Space Flight Center, AL 35812
O- 256-544-3469 C- 256-783-8362 F-256-544-2659
On Tue, 20 May 2014, Carter, James M. (MSFC-ES31) wrote:> Sirs:There are more than a few 'madams' on this list too.> Trying to update OpenSSH to version openssh-6.6p1 using openssl-1.0.1g > and zlib-1.2.3. Updating both openssl and openssh at same time. Have > been running openssh on Solaris 8 machines for years. > > Has occurred on 3 mahines: > After "compiling" openssh, try to start: /opt/openssh/sbin/sshd > Get error: > Could not load host key: /opt/openssh-5.0p1/etc/ssh_host_rsa_key > Could not load host key: /opt/openssh-5.0p1/etc/ssh_host_dsa_key > Disabling protocol version 2. Could not find host key > sshd: no host keys available -- exiting > > openssh-5.0.p1 is what I am replacing. How/where is software getting > reference to software that I cannot find on machine? I am deleting > installed zlib, openssl & openssh before I start new installation.Three possibilities: 1) You are running the old sshd version instead of the new version. This is easily checked by running 'sshd -?' and looking at the version. E.g. sshd: unknown option -- ? OpenSSH_6.7, OpenSSL 1.0.1g 7 Apr 2014 [...] 2) You are running the correct version of sshd but it has been configured to use the wrong config path. You can check this by running 'sshd -rddd' and looking for the lines like this: debug2: load_server_config: filename /etc/ssh/sshd_config 3) You are running the correct version of sshd and it is finding the correct configuration file, but it has bad key paths in it. This will also be apparent from the debug output. E.g. debug3: /etc/ssh/sshd_config:22 setting HostKey /etc/ssh/ssh_host_key Hope this helps. -d
Apparently Analagous Threads
- corssbow and virtualbox issues..
- ? about portable version of sshd crashing
- chaining AUTH methods -- adding GoogleAuthenticator 2nd Factor to pubkey auth? can't get the GA prompt :-/
- OpenSSH_6.7p1 hostbased authentication failing on linux->linux connection. what's wrong with my config?
- immediate "gotcha" in compilation!? 6.6p1 versus openssl 1.0.1g