Error Could Not Load Host Key /etc/ssh/ssh_host_ecdsa_key
Contents |
people Affects Status Importance Assigned to Milestone openssh (Ubuntu) Edit Confirmed Low Unassigned Edit You need to log sshd error could not load host key in to change this bug's status. Affecting: openssh (Ubuntu) Filed could not load host key /usr/local/etc/ssh_host_ecdsa_key here by: Michael Nagel When: 2012-05-28 Confirmed: 2012-09-07 Target Distribution Baltix BOSS Juju Charms Collection could not load host key etc ssh ssh_host_ed25519_key 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 docker could not load host key: /etc/ssh/ssh_host_rsa_key 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
Error: Could Not Load Host Key: /etc/ssh/ssh_host_dsa_key Rhel 7
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 open
2 Comments Question: When I try to SSH to a remote server, SSH client fails with "Connection closed by X.X.X.X". On the SSH server
Disabling Protocol Version 1. Could Not Load Host Key
side, I see error messages: "sshd error: could not load host key." What unknown key type ecdsa is going on, and how can I fix this error? The detailed symptom of this SSH connection error is as could not load host key /etc/ssh_host_rsa_key mac follows. SSH client side: when you attempt to SSH to a remote host, you don't see login screen, and your SSH connection is closed right away with a message: "Connection closed by https://bugs.launchpad.net/bugs/1005440 XXXX" or "Connection reset by XXXX" SSH server side: in a system log, you see the following error messages. In /var/log/auth.log on Debian, Ubuntu or Linux Mint: Oct 16 08:59:45 openstack sshd[1214]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key Oct 16 08:59:45 openstack sshd[1214]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key Oct 16 08:59:45 openstack sshd[1214]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key Oct 16 08:59:45 http://ask.xmodulo.com/sshd-error-could-not-load-host-key.html openstack sshd[1214]: fatal: No supported key exchange algorithms [preauth] In /var/log/secure on CentOS, Fedora or RHEL: Feb 18 21:48:25 localhost sshd[14226]: fatal: No supported key exchange algorithms [preauth] The root cause of this problem is that sshd daemon somehow is not able to load SSH host keys. When OpenSSH server is first installed on Linux system, SSH host keys should automatically be generated for subsequent use. If, however, key generation was not finished successfully, that can cause SSH login problems like this. Let's check if SSH host keys are found where they should be. $ ls -al /etc/ssh/ssh*key If SSH host keys are not found there, or their size is all truncated to zero (like above), you need to regenerate SSH host keys from scratch. Regenerate SSH Host Keys On Debian, Ubuntu or their derivatives, you can use dpkg-reconfigure tool to regenerate SSH host keys as follows. $ sudo rm -r /etc/ssh/ssh*key $ sudo dpkg-reconfigure openssh-server On CentOS, RHEL or Fedora, all you have to do is to restart sshd after removing existing (problematic) keys. $ sudo rm -r /etc/ssh/ssh*key $ sudo systemctl restart sshd An alternative way to regenerate SSH host keys is to ma
Login: [x] Format For Printing -XML -Clone This Bug -Last Comment First Last Prev Next This bug is not in your last search results. Bug1166479 https://bugzilla.redhat.com/show_bug.cgi?id=1166479 - 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: 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 To: Petr Lautrbach QA Contact: BaseOS QE Security Team Docs could not 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 03:41:20 EST Type: Bug Regression: --- Mount Type: --- Documentation: --- CRM: Verified Versions: Category: --- could not load 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/ssh_host_dsa_key 30 HostKey /etc/ssh/ssh_host_ecdsa_key Comment 3 Laurie D 2015-11-13 15:02:59 EST Unless I'm misunderstanding something, there seems to be a bug here. My SSHD config doesn't reference those keys (as you