HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh2: Unable to load hostkeys
Operating System - HP-UX
1834508
Members
2603
Online
110068
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-26-2007 02:10 AM
04-26-2007 02:10 AM
ssh2: Unable to load hostkeys
Apr 25 16:40:41 temp17 sshd2[27502]: FATAL ERROR: Unable to load any hostkeys
Apr 25 16:40:45 temp17 sshd2[27505]: FATAL ERROR: Unable to load any hostkeys
Apr 25 16:41:51 temp17 sshd2[27654]: FATAL ERROR: Unable to load any hostkeys
Apr 25 17:53:47 temp17 sshd2[652]: FATAL ERROR: Unable to load any hostkeys
Apr 25 23:27:22 temp17 sshd2[14322]: FATAL ERROR: Unable to load any hostkeys
Apr 26 07:01:26 temp17 sshd2[11901]: FATAL ERROR: Unable to load any hostkeys
Apr 26 07:01:26 temp17 sshd2[11904]: FATAL ERROR: Unable to load any hostkeys
Why am I having this issue?
Apr 25 16:40:45 temp17 sshd2[27505]: FATAL ERROR: Unable to load any hostkeys
Apr 25 16:41:51 temp17 sshd2[27654]: FATAL ERROR: Unable to load any hostkeys
Apr 25 17:53:47 temp17 sshd2[652]: FATAL ERROR: Unable to load any hostkeys
Apr 25 23:27:22 temp17 sshd2[14322]: FATAL ERROR: Unable to load any hostkeys
Apr 26 07:01:26 temp17 sshd2[11901]: FATAL ERROR: Unable to load any hostkeys
Apr 26 07:01:26 temp17 sshd2[11904]: FATAL ERROR: Unable to load any hostkeys
Why am I having this issue?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 02:26 AM
04-26-2007 02:26 AM
Re: ssh2: Unable to load hostkeys
How is your ssh directory !!!?
#ls -al /etc/ssh
#ls -al /etc/ssh
Just unplug and plug in again ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 02:33 AM
04-26-2007 02:33 AM
Re: ssh2: Unable to load hostkeys
Do they exists in the places where your sshd_config is telling they should be?
Check
# grep HostKey /opt/ssh/etc/sshd_config
# HostKey for protocol version 1
#HostKey /opt/ssh/etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /opt/ssh/etc/ssh_host_rsa_key
#HostKey /opt/ssh/etc/ssh_host_dsa_key
If the HostKey directives are commented
they are expected in these default place.
Also check if they have restricted perms like
# ll /opt/ssh/etc/ssh_host_{rsa,dsa}_key
-rw------- 1 root sys 672 Oct 1 2002 /opt/ssh/etc/ssh_host_dsa_key
-rw------- 1 root sys 883 Oct 1 2002 /opt/ssh/etc/ssh_host_rsa_key
If you cannot find any host keys then you must generate them as root.
e.g.
# for c in rsa dsa;do ssh-keygen -t $c -b 1024 -N "" -f /etc/opt/ssh/ssh_host_${c}_key; done
Then try starting sshd again
# /sbin/init.d/secsh start
Check
# grep HostKey /opt/ssh/etc/sshd_config
# HostKey for protocol version 1
#HostKey /opt/ssh/etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /opt/ssh/etc/ssh_host_rsa_key
#HostKey /opt/ssh/etc/ssh_host_dsa_key
If the HostKey directives are commented
they are expected in these default place.
Also check if they have restricted perms like
# ll /opt/ssh/etc/ssh_host_{rsa,dsa}_key
-rw------- 1 root sys 672 Oct 1 2002 /opt/ssh/etc/ssh_host_dsa_key
-rw------- 1 root sys 883 Oct 1 2002 /opt/ssh/etc/ssh_host_rsa_key
If you cannot find any host keys then you must generate them as root.
e.g.
# for c in rsa dsa;do ssh-keygen -t $c -b 1024 -N "" -f /etc/opt/ssh/ssh_host_${c}_key; done
Then try starting sshd again
# /sbin/init.d/secsh start
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 02:42 AM
04-26-2007 02:42 AM
Re: ssh2: Unable to load hostkeys
I rebooted and that seemed to have fixed the issue although I'm not sure why.
Thanks!
Thanks!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP