<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic openssh configuration in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576010#M759224</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to configure 'openssh' version 2.5.1p1 on a HP-UX 11 box. The version I have was the binary downloaded from the HP porting centre.&lt;BR /&gt;I have a few problems in trying to get the &lt;BR /&gt;package to work.&lt;BR /&gt;I can't get the 'sshd' daemon to start&lt;BR /&gt;The messages it gives me are that the host keys are bad even though I had already created them using the 'ssh-keygen' command.&lt;BR /&gt;The syntax of the 'ssh-keygen' commands used was &lt;BR /&gt;# ./ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N "password"&lt;BR /&gt;# ./ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_rsa_key -N "password1"&lt;BR /&gt;# ./ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_dsa_key -N "password2"&lt;BR /&gt;&lt;BR /&gt;When I try to start the 'sshd' daemon I get the following error messages. &lt;BR /&gt;&lt;BR /&gt;# ./sshd &amp;amp;&lt;BR /&gt;[1]     8488&lt;BR /&gt;# error: Could not load host key: /opt/openssh2/etc/ssh_host_key: Bad file number&lt;BR /&gt;error: Could not load host key: /opt/openssh2/etc/ssh_host_dsa_key: Bad file number&lt;BR /&gt;error: Could not load host key: /opt/openssh2/etc/ssh_host_rsa_key: Bad file number&lt;BR /&gt;Disabling protocol version 1. Could not load host key&lt;BR /&gt;Disabling protocol version 2. Could not load host key&lt;BR /&gt;sshd: no hostkeys available -- exiting.&lt;BR /&gt;&lt;BR /&gt;Have I got something incorrect in the way that I am doing this or I have some configuration issue??&lt;BR /&gt;&lt;BR /&gt;Please help before I get a rope and hang it over the nearest tree..&lt;BR /&gt;&lt;BR /&gt;-Michael&lt;BR /&gt;</description>
    <pubDate>Thu, 06 Sep 2001 00:06:55 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2001-09-06T00:06:55Z</dc:date>
    <item>
      <title>openssh configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576010#M759224</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to configure 'openssh' version 2.5.1p1 on a HP-UX 11 box. The version I have was the binary downloaded from the HP porting centre.&lt;BR /&gt;I have a few problems in trying to get the &lt;BR /&gt;package to work.&lt;BR /&gt;I can't get the 'sshd' daemon to start&lt;BR /&gt;The messages it gives me are that the host keys are bad even though I had already created them using the 'ssh-keygen' command.&lt;BR /&gt;The syntax of the 'ssh-keygen' commands used was &lt;BR /&gt;# ./ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N "password"&lt;BR /&gt;# ./ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_rsa_key -N "password1"&lt;BR /&gt;# ./ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_dsa_key -N "password2"&lt;BR /&gt;&lt;BR /&gt;When I try to start the 'sshd' daemon I get the following error messages. &lt;BR /&gt;&lt;BR /&gt;# ./sshd &amp;amp;&lt;BR /&gt;[1]     8488&lt;BR /&gt;# error: Could not load host key: /opt/openssh2/etc/ssh_host_key: Bad file number&lt;BR /&gt;error: Could not load host key: /opt/openssh2/etc/ssh_host_dsa_key: Bad file number&lt;BR /&gt;error: Could not load host key: /opt/openssh2/etc/ssh_host_rsa_key: Bad file number&lt;BR /&gt;Disabling protocol version 1. Could not load host key&lt;BR /&gt;Disabling protocol version 2. Could not load host key&lt;BR /&gt;sshd: no hostkeys available -- exiting.&lt;BR /&gt;&lt;BR /&gt;Have I got something incorrect in the way that I am doing this or I have some configuration issue??&lt;BR /&gt;&lt;BR /&gt;Please help before I get a rope and hang it over the nearest tree..&lt;BR /&gt;&lt;BR /&gt;-Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Sep 2001 00:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576010#M759224</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-09-06T00:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: openssh configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576011#M759225</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;When you ran ssh-keygen did you have&lt;BR /&gt;/opt/openssh2/etc/ssh_host_key.pub file created?.&lt;BR /&gt;&lt;BR /&gt;Else, you can do one thing. Do not specify the type just do&lt;BR /&gt;&lt;BR /&gt;./ssh-keygen -b 1024 -f /opt/openssh2/etc/ssh_host_key -N "password"&lt;BR /&gt;&lt;BR /&gt;You sshd should be able to read this key.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 06 Sep 2001 03:05:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576011#M759225</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-06T03:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: openssh configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576012#M759226</link>
      <description>Hi Sri,&lt;BR /&gt;&lt;BR /&gt;Yes there was a 'ssh_host_key.pub' file.&lt;BR /&gt;&lt;BR /&gt;I ran your suggested method and then tried&lt;BR /&gt;to start the daemon '/opt/openssh2/sbin/sshd &amp;amp;'&lt;BR /&gt;This produced a similar error message to before.&lt;BR /&gt;# /opt/openssh2/sbin/sshd &amp;amp;&lt;BR /&gt;[2]     9420&lt;BR /&gt;# error: Could not load host key: /opt/openssh2/etc/ssh_host_key: Bad file number&lt;BR /&gt;/opt/openssh2/etc/ssh_host_dsa_key: No such file or directory&lt;BR /&gt;error: Could not load host key: /opt/openssh2/etc/ssh_host_dsa_key: No such file or directory&lt;BR /&gt;/opt/openssh2/etc/ssh_host_rsa_key: No such file or directory&lt;BR /&gt;error: Could not load host key: /opt/openssh2/etc/ssh_host_rsa_key: No such file or directory&lt;BR /&gt;Disabling protocol version 1. Could not load host key&lt;BR /&gt;Disabling protocol version 2. Could not load host key&lt;BR /&gt;sshd: no hostkeys available -- exiting.&lt;BR /&gt;&lt;BR /&gt;Are there any changes required for the config files ssh_config &amp;amp; sshd_config prior to starting the daemon?&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Sep 2001 03:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576012#M759226</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-09-06T03:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: openssh configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576013#M759227</link>
      <description>Micheal,&lt;BR /&gt;&lt;BR /&gt;Please ignore that message. No use. I tried to reproduce the problem and I could.. I think the keys I got here were generated during the make install program. sshd doesn't seem to like the keys generated by ssh-keygen command.&lt;BR /&gt;I have a copy of my old keys. sshd starts up with them fine but not with the ones that I generate.&lt;BR /&gt;&lt;BR /&gt;Well, we don't really have to change the configuration as sshd is correctly identifying the path. It's a matter of compatibility. We may have to dig out the make/install programs and see how they are doing inside. I am trying to do it now. My installation is pretty old so I am kind of struggling to get to my previously saved code.&lt;BR /&gt;&lt;BR /&gt;I am attaching my keys. See if you can bring up your sshd with them meanwhile to confirm our argument.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 06 Sep 2001 03:54:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576013#M759227</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-06T03:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: openssh configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576014#M759228</link>
      <description>Hi Sri,&lt;BR /&gt;&lt;BR /&gt;We have to try this tomorrow, I have to go to another site and fix a dead system.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael</description>
      <pubDate>Thu, 06 Sep 2001 04:08:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576014#M759228</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-09-06T04:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: openssh configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576015#M759229</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;I think I got the clue.I knew I did it before but could never remember. Don't specify any password while generating host keys. &lt;BR /&gt;&lt;BR /&gt;# ./ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N ""&lt;BR /&gt;# ./ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_rsa_key -N ""&lt;BR /&gt;# ./ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_dsa_key -N "" &lt;BR /&gt;&lt;BR /&gt;Now try starting sshd.&lt;BR /&gt;&lt;BR /&gt;#./sshd &amp;amp;&lt;BR /&gt;&lt;BR /&gt;It should start. I have gotten rid of the problem this way. Enjoy.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Sep 2001 05:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576015#M759229</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-06T05:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: openssh configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576016#M759230</link>
      <description>Oops. One more thing I forgot to mention. Check your rsa and dsa lines. You are supposed to specify ssh_host_rsa_key and ssh_host_dsa_key instead ssh_rsa_key and ssh_dsa_key.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 06 Sep 2001 05:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-configuration/m-p/2576016#M759230</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-06T05:55:23Z</dc:date>
    </item>
  </channel>
</rss>

