Error Could Not Load Host Key /etc/ssh/ssh_host_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:
Error Could Not Load Host Key /etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_rsa_key SSH wont start after install:# /usr/bin/sshd Could not load sshd error could not load host key host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key Could not load host key: /etc/ssh/ssh_host_ecdsa_key error could not load host key /etc/ssh/ssh_host_rsa_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting.I thought the installation would take care of key-generation as nothing
Sshd Error Could Not Load Host Key /etc/ssh/ssh_host_dsa_key
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_dsa_key
-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 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.s
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business could not load host key /etc/ssh/ssh_host_rsa_key Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges
Openssh Could Not Load Host Key
Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a sshd could not load host key /etc/ssh/ssh_host_dsa_key minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Could not load host key: /etc/ssh/ssh_host_ed25519_key in /var/log/auth.log up vote 6 down https://bbs.archlinux.org/viewtopic.php?id=165382 vote favorite I have an Ubuntu 14.04 instance running on AWS. I was browsing the auth logs (/var/log/auth.log*), and noticed the following line appearing: Could not load host key: /etc/ssh/ssh_host_ed25519_key This line appears between 1k-10k times a day, presumably due to failed hack attempts. In researching this problem, I came up with a number of questions. What is the effect of the absence of this key? I can still log in fine with the key provided by AWS. http://askubuntu.com/questions/626372/could-not-load-host-key-etc-ssh-ssh-host-ed25519-key-in-var-log-auth-log Is it forcing the security of my SSH connections to be downgraded? Has it been disabled on purpose because of security concerns? I've seen some people suggest that the key wasn't generated correctly during installation, and that I need to regenerate the key with dpkg-reconfigure or ssh-keygen. Alternatively, I've also seen people recommend just commenting out the line: HostKey /etc/ssh/ssh_host_ed25519_key in /etc/ssh/sshd_config server ssh security authentication share|improve this question asked May 21 '15 at 5:04 aidan 14419 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted You can generate the missing hostkey via: ssh-keygen -A ed25519 is a bit faster and more secure. It's not necessary and, aside from logspam, this doesn't have that much effect. You could, indeed, comment out HostKey /etc/ssh/ssh_host_ed25519_key, without much effect. But, at the same time, `ed25519 is a good host-key format to support. share|improve this answer answered Jul 18 '15 at 6:51 Will 164113 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged server ssh security authentication or ask your
Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red Hat Insights Ansible Tower https://access.redhat.com/solutions/1486393 by Red Hat Cloud Computing Back Red Hat CloudForms Red Hat OpenStack Platform Red Hat Cloud Infrastructure Red Hat Cloud Suite Red Hat OpenShift Container Platform Red http://superuser.com/questions/880702/could-not-load-host-key-etc-ssh-host-key Hat OpenShift Online Red Hat OpenShift Dedicated Storage Back Red Hat Gluster Storage Red Hat Ceph Storage JBoss Development and Management Back Red Hat JBoss Enterprise Application could not Platform Red Hat JBoss Data Grid Red Hat JBoss Web Server Red Hat JBoss Portal 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 could not load Red Hat Mobile Application Platform Services Back Consulting Technical Account Management Training & Certifications Red Hat Enterprise Linux Developer Program Support Get 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 Download
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Could not load host key: /etc/ssh_host_*_key up vote 1 down vote favorite When doing this check: $ /usr/sbin/sshd -t Getting: Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key But when doing same check with sudo all is good: $ sudo /usr/sbin/sshd -t $ Does anyone know why does this happen, what’s wrong with my standard user and how to fix it? linux osx ssh share|improve this question edited Dec 31 '15 at 11:37 Mateusz Piotrowski 545219 asked Feb 21 '15 at 7:25 Drew 4572621 When you are getting the error, are you running sshd as root? –Kenster Feb 21 '15 at 21:56 No as it's posted –Drew Feb 21 '15 at 22:32 I posted an answer, but what are you trying to do? sshd needs to be run by a user with root/sudo access. Not a regular user. –JakeGould Feb 21 '15 at 22:42 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Does anyone know why does this happen, what’s wrong with my standard user and how to fix it? There is nothing wrong; you are attempting to run sshd (SSH daemon) as a non-privileged user. For example, I am on Mac OS X 10.9.5 (Mavericks) and get the same exact “error” when running /usr/sbin/sshd -t: Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Which is to be expected since sshd is the SSH daemon—note the d after ssh—that would run as a SSH server on the system listening and waiting for remote SSH login requests. So it would always need root/sudo permissions to work. So this is not an “error” but rather expected behavior w