- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- openssh configuration
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 05:06 PM
09-05-2001 05:06 PM
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.
I have a few problems in trying to get the
package to work.
I can't get the 'sshd' daemon to start
The messages it gives me are that the host keys are bad even though I had already created them using the 'ssh-keygen' command.
The syntax of the 'ssh-keygen' commands used was
# ./ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N "password"
# ./ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_rsa_key -N "password1"
# ./ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_dsa_key -N "password2"
When I try to start the 'sshd' daemon I get the following error messages.
# ./sshd &
[1] 8488
# error: Could not load host key: /opt/openssh2/etc/ssh_host_key: Bad file number
error: Could not load host key: /opt/openssh2/etc/ssh_host_dsa_key: Bad file number
error: Could not load host key: /opt/openssh2/etc/ssh_host_rsa_key: Bad file number
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Have I got something incorrect in the way that I am doing this or I have some configuration issue??
Please help before I get a rope and hang it over the nearest tree..
-Michael
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 08:05 PM
09-05-2001 08:05 PM
Re: openssh configuration
When you ran ssh-keygen did you have
/opt/openssh2/etc/ssh_host_key.pub file created?.
Else, you can do one thing. Do not specify the type just do
./ssh-keygen -b 1024 -f /opt/openssh2/etc/ssh_host_key -N "password"
You sshd should be able to read this key.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 08:36 PM
09-05-2001 08:36 PM
Re: openssh configuration
Yes there was a 'ssh_host_key.pub' file.
I ran your suggested method and then tried
to start the daemon '/opt/openssh2/sbin/sshd &'
This produced a similar error message to before.
# /opt/openssh2/sbin/sshd &
[2] 9420
# error: Could not load host key: /opt/openssh2/etc/ssh_host_key: Bad file number
/opt/openssh2/etc/ssh_host_dsa_key: No such file or directory
error: Could not load host key: /opt/openssh2/etc/ssh_host_dsa_key: No such file or directory
/opt/openssh2/etc/ssh_host_rsa_key: No such file or directory
error: Could not load host key: /opt/openssh2/etc/ssh_host_rsa_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.
Are there any changes required for the config files ssh_config & sshd_config prior to starting the daemon?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 08:54 PM
09-05-2001 08:54 PM
Re: openssh configuration
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.
I have a copy of my old keys. sshd starts up with them fine but not with the ones that I generate.
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.
I am attaching my keys. See if you can bring up your sshd with them meanwhile to confirm our argument.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 09:08 PM
09-05-2001 09:08 PM
Re: openssh configuration
We have to try this tomorrow, I have to go to another site and fix a dead system.
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 10:51 PM
09-05-2001 10:51 PM
SolutionI think I got the clue.I knew I did it before but could never remember. Don't specify any password while generating host keys.
# ./ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N ""
# ./ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_rsa_key -N ""
# ./ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_dsa_key -N ""
Now try starting sshd.
#./sshd &
It should start. I have gotten rid of the problem this way. Enjoy.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 10:55 PM
09-05-2001 10:55 PM
Re: openssh configuration
-Sri