Error Could Not Load Host Key /etc/ssh/ssh_host_dsa_key
Contents |
1 #1 2013-06-18 08:17:52 JKAbrams Member From: Sweden Registered: 2011-11-07 Posts: 81 [SOLVED] SSH: Could not load host key: /etc/ssh/ssh_host_rsa_key SSH wont start after install:# /usr/bin/sshd Could not load host key: /etc/ssh/ssh_host_rsa_key Could not sshd could not load host key /etc/ssh/ssh_host_dsa_key load host key: /etc/ssh/ssh_host_dsa_key Could not load host key: /etc/ssh/ssh_host_ecdsa_key Disabling protocol could not load host key /etc/ssh/ssh_host_rsa_key version 2. Could not load host key sshd: no hostkeys available -- exiting.I thought the installation would take care sshd could not load host key of key-generation as nothing is mentioned on the install section of the wiki SSHD.Should the install section on the wiki contain a bunch of:ssh-keygen
Could Not Load Host Key /etc/ssh/ssh_host_key
options for default keys?Something else that might be wrong with my system?What I've tried so far:# pacman -Rsn openssh # rm -fr /etc/ssh # pacman -S openssh Last edited by JKAbrams (2013-06-18 14:11:27) Offline #2 2013-06-18 08:40:39 crondog Member Registered: 2011-04-21 Posts: 127 Re: [SOLVED] SSH: Could not load host key: /etc/ssh/ssh_host_rsa_key You should start it via the systemd service because that will generate could not load host key /etc/ssh/ssh_host_ecdsa_key aix the keysThis will run /usr/bin/ssh-keygen -A Offline #3 2013-06-18 09:01:25 JKAbrams Member From: Sweden Registered: 2011-11-07 Posts: 81 Re: [SOLVED] SSH: Could not load host key: /etc/ssh/ssh_host_rsa_key crondog wrote:You should start it via the systemd service because that will generate the keysThis will run /usr/bin/ssh-keygen -AIt does not seem to:# systemctl start sshd # systemctl status sshd sshd.service - OpenSSH Daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled) Active: failed (Result: start-limit) since ons 2013-06-19 08:49:49 NZST; 3s ago Process: 1705 ExecStart=/usr/bin/sshd -D (code=exited, status=1/FAILURE) jun 19 08:49:49 mba systemd[1]: Starting OpenSSH Daemon... jun 19 08:49:49 mba systemd[1]: Started OpenSSH Daemon. jun 19 08:49:49 mba systemd[1]: sshd.service: main process exited, code=exited, status=1/FAILURE jun 19 08:49:49 mba systemd[1]: Unit sshd.service entered failed state. jun 19 08:49:49 mba systemd[1]: sshd.service holdoff time over, scheduling restart. jun 19 08:49:49 mba systemd[1]: Stopping OpenSSH Daemon... jun 19 08:49:49 mba systemd[1]: Starting OpenSSH Daemon... jun 19 08:49:49 mba systemd[1]: sshd.service start request repeated too quickly, refusing to start. jun 19 08:49:49 mba systemd[1]: Failed to start OpenSSH Daemon. jun 19 08:49:49 mba systemd[1]: Unit sshd.service entered failed state.# /usr/bin/sshd Could not load host key: /etc/ssh/ssh_host_rsa_key Could no
Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red Hat Insights Ansible Tower by Red Hat Cloud Computing Back Red could not load host key: /etc/ssh/ssh_host_ed25519_key Hat CloudForms Red Hat OpenStack Platform Red Hat Cloud Infrastructure Red Hat Cloud
Docker Could Not Load Host Key: /etc/ssh/ssh_host_rsa_key
Suite Red Hat OpenShift Container Platform Red Hat OpenShift Online Red Hat OpenShift Dedicated Storage Back Red Hat
Could Not Load Host Key /etc/ssh_host_rsa_key Mac
Gluster Storage Red Hat Ceph Storage JBoss Development and Management Back Red Hat JBoss Enterprise Application Platform Red Hat JBoss Data Grid Red Hat JBoss Web Server Red Hat JBoss Portal https://bbs.archlinux.org/viewtopic.php?id=165382 Red Hat JBoss Operations Network Red Hat JBoss Developer Studio JBoss Integration and Automation Back Red Hat JBoss Data Virtualization Red Hat JBoss Fuse Red Hat JBoss A-MQ Red Hat JBoss BPM Suite Red Hat JBoss BRMS Mobile Back Red Hat Mobile Application Platform Services Back Consulting Technical Account Management Training & Certifications Red Hat Enterprise Linux Developer Program Support Get https://access.redhat.com/solutions/1486393 Support Production Support Development Support Product Life Cycle & Update Policies Knowledge Search Documentation Knowledgebase Videos Discussions Ecosystem Browse Certified Solutions Overview Partner Resources Tools Back Red Hat Insights Learn More Red Hat Access Labs Explore Labs Configuration Deployment Troubleshooting Security Additional Tools Red Hat Access plug-ins Red Hat Satellite Certificate Tool Security Back Product Security Center Security Updates Security Advisories Red Hat CVE Database Security Labs Resources Overview Security Blog Security Measurement Severity Ratings Backporting Policies Product Signing (GPG) Keys Community Back Discussions Red Hat Enterprise Linux Red Hat Virtualization Red Hat Satellite Customer Portal Private Groups All Discussions Start a Discussion Blogs Customer Portal Red Hat Product Security Red Hat Access Labs Red Hat Insights All Blogs Events Customer Events Red Hat Summit Stories Red Hat Subscription Benefits You Asked. We Acted. Open Source Communities Subscriptions Downloads Support Cases Account Back Log In Register Red Hat Account Number: Account Details Newsletter and Contact Preferences User Management Account Maintenance My Profile Notifications Help Log Out Language Back English español Deutsch italiano 한국어 français 日本語 português 中文 (中国) русский Customer Portal Search Pro
Login: [x] Format For Printing -XML -Clone This Bug -Last Comment First Last Prev Next This bug is not in https://bugzilla.redhat.com/show_bug.cgi?id=1166479 your last search results. Bug1166479 - sshd complaining " Could not load host key: /etc/ssh/ssh_host_dsa_key" Summary: sshd complaining " Could not load host key: /etc/ssh/ssh_host_dsa_key" Status: CLOSED WORKSFORME Aliases: None Product: https://bugs.launchpad.net/bugs/1005440 Red Hat Enterprise Linux 7 Classification: Red Hat Component: openssh (Show other bugs) Sub Component: --- Version: 7.0 Hardware: x86_64 Linux Priority unspecified Severity low TargetMilestone: rc TargetRelease: --- Assigned could not To: Petr Lautrbach QA Contact: BaseOS QE Security Team Docs Contact: URL: Whiteboard: Keywords: Depends On: Blocks: Show dependency tree /graph Reported: 2014-11-20 23:57 EST by Ashwin Modified: 2015-11-13 17:33 EST (History) CC List: 2 users (show) jjelen laurie See Also: Fixed In Version: Doc Type: Bug Fix Doc Text: Story Points: --- Clone Of: Environment: Last Closed: 2014-11-21 could not load 03:41:20 EST Type: Bug Regression: --- Mount Type: --- Documentation: --- CRM: Verified Versions: Category: --- oVirt Team: --- RHEL 7.3 requirements from Atomic Host: Cloudforms Team: --- Attachments (Terms of Use) Add an attachment (proposed patch, testcase, etc.) Groups: None (edit) Description Ashwin 2014-11-20 23:57:02 EST Description of problem: Spurious messages about sshd complaining about unable to load /etc/ssh/ssh_host_dsa_key. It seems "/etc/sysconfig/sshd" has now defaulted to "NODSA" to disable DSA host key generation. This appears to be in contrast to the default sshd host key load-order. The error does go away if a DSA host key is manually generated. Version-Release number of selected component (if applicable): openssh-server-6.4p1-8.el7.x86_64 rhel 7.0 How reproducible: Steps to Reproduce: 1. Ensure a default /etc/sysconfig/sshd exists. 2. ssh to box using (default) openssh-client Actual results: sshd[13779]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key ... ... Expected results: Additional info: Comment 2 Petr Lautrbach 2014-11-21 03:41:20 EST Default /etc/ssh/sshd_config doesn't use dsa host keys: 25 # HostKey for protocol version 1 26 #HostKey /etc/ssh/ssh_host_key 27 # HostKeys for protocol version 2 28 HostKey /etc/ssh/ssh_host_rsa_key 29 #HostKey /etc/ssh
people Affects Status Importance Assigned to Milestone openssh (Ubuntu) Edit Confirmed Low Unassigned Edit You need to log in to change this bug's status. Affecting: openssh (Ubuntu) Filed here by: Michael Nagel When: 2012-05-28 Confirmed: 2012-09-07 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Confirmed Low Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description when connecting to my Ubuntu 12.04 server via ssh I get a log entry Could not load host key: /etc/ssh/ssh_host_ecdsa_key for every (attempted) connection. SSH should be configured in a way that does not generate such a warning... ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: openssh-server 1:5.9p1-5ubuntu1 ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14 Uname: Linux 3.2.0-24-generic x86_64 ApportVersion: 2.0.1-0ubuntu7 Architecture: amd64 Date: Mon May 28 11:00:08 2012 InstallationMedia: SourcePackage: openssh UpgradeStatus: No upgrade log present (probably fresh install) Tags: precise amd64 apport-bug Edit Tag help Michael Nagel (nailor) wrote on 2012-05-28: #1 Dependencies.txt Edit (2.1 KiB, text/plain; charset="utf-8") ProcEnviron.txt Edit (364 bytes, text/plain; charset="utf-8") SSHDConfig.txt Edit (1.5 KiB, text/plain; charset="utf-8") Chuck Short (zulcss) wrote on 2012-05-28: #2 Have you done the following: sudo ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ” Thanks chuck Changed in openssh (Ubuntu): importance: Undecided → Low status: New → Incomplete Michael Nagel (nailor) wrote on 2012-06-05: #3 i did now, and it fixes the issue. i think the need to do this manually is somewhat unfortunate, however. Changed in openssh (Ubuntu): status: Incomplete → New Launchpad Janitor (janitor) wrote on 2012-09-07: #4 Status changed to 'Confirmed' because the bug affects multiple users. Changed in openssh (Ubuntu): status: New → Confirmed Kaizoku (493pocbrcycmdw7yksonho9-oton6-d18ecat4t1b76tkfi3vttrk) wrote on 2013-01-07: #5 ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ” Generating public/private ecdsa key pair. passphrase too short: have 3 bytes, need > 4 Saving the key failed: /etc/ssh/ssh_host_ecdsa_key. The above mentioned solution doesn't