Error Could Not Load Host Key /etc/ssh/ssh_host_rsa_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:
Error Could Not Load Host Key /etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key Could not load host key: sshd error could not load host key /etc/ssh/ssh_host_ecdsa_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting.I thought the installation
Sshd Could Not Load Host Key /etc/ssh/ssh_host_rsa_key
would take care 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
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
Sshd Could Not Load Host Key
policies of this site About Us Learn more about Stack Overflow the sshd could not load host key /etc/ssh/ssh_host_dsa_key company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered
Could Not Load Host Key /etc/ssh/ssh_host_key
Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can https://bbs.archlinux.org/viewtopic.php?id=165382 ask a question Anybody can answer The best answers are voted up and rise to the top Error `could not load host key` when trying to recreate SSH host keys up vote 5 down vote favorite 1 I am trying to recreate the ssh-server host keys. I have at least two ways to do this: With dpkg-reconfigure dpkg-reconfigure openssh-server This works fine, but http://askubuntu.com/questions/600584/error-could-not-load-host-key-when-trying-to-recreate-ssh-host-keys I cannot give the key length then. I want for example 4096 for the RSA key. Manually with ssh-keygen sudo ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N 'myverylongpasswordhere' -b 4096 -t rsa This recreates me the keys, but after restarting the server, I receive the following error message: could not load host key: /etc/ssh/ssh_host_rsa_key so I checked the sshd_config file whats in there: HostKey /etc/ssh/ssh_host_rsa_key matches perfectly. So, I checked the owner and rights to all my keys -rw------- 1 root root 3326 Mär 24 08:57 ssh_host_rsa_key When I remove all keys and recreate them with dpkg-reconfigure openssh-server, the keys are smaller and having the same file-rights like above. Question: How can I use dpkg-reconfigure with keylengh 4096 for RSA? ssh openssh share|improve this question edited Mar 24 '15 at 19:10 LiveWireBT 16k114895 asked Mar 24 '15 at 8:05 Emil Sommer 2813 Please run sshd in debug mode from the command line (sudo sshd -d) for more info on the issue and post the output. –David Foerster Mar 24 '15 at 9:44 @DavidFoerster That looks like a good suggestion. I tried recreating the issue b
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 https://access.redhat.com/solutions/1486393 Hat CloudForms Red Hat OpenStack Platform Red Hat Cloud Infrastructure Red Hat Cloud Suite Red Hat OpenShift Container Platform Red 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 Platform Red Hat JBoss Data Grid Red Hat JBoss Web Server Red Hat could not 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 Red Hat Mobile Application Platform Services Back Consulting Technical Account Management Training & Certifications Red Hat Enterprise Linux Developer Program could not load 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 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 中文 (中国) рус