Could not load host key

Source: Internet
Author: User

Could not load host key clones a virtual machine as needed. But the cloned virtual machine is not even on the xhell shown below. 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" image "style=" LINE-HEIGHT:29.8667PX; Color:rgb (51,51,51); font-size:16px;border:1px solid RGB (221,221,221); background-position:50% 50%; background-repeat:no-repeat; "/>650" this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/89/D4/ Wkiom1ge4teyp8qdaaa03esnk8k382.png-wh_500x0-wm_3-wmp_4-s_3864187283.png "title=" 1.png "alt=" Wkiom1ge4teyp8qdaaa03esnk8k382.png-wh_50 "/> First thought it was iptables firewall blocked, the results of the firewall did not find any rules. So I looked through the log and showed the following

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" image "Style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;"/>650) this.width=650; "src=" http:// S2.51cto.com/wyfs02/m00/89/d1/wkiol1ge4uhaga4raaan_mewou8474.png-wh_500x0-wm_3-wmp_4-s_953084687.png "title=" 2. PNG "alt=" wkiol1ge4uhaga4raaan_mewou8474.png-wh_50 "/>

Key load failed with no permissions. So, switch to the/etc/ssh file below. The permissions are found to be correct and the key file exists. Then, the three keys are regenerated again. Instantly full of blood resurrection.
Ssh-keygen-t rsa-f Ssh_host_rsa_key

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" image "Style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;"/>650) this.width=650; "src=" http:// S4.51cto.com/wyfs02/m02/89/d4/wkiom1ge4vejcqvpaabieipaa2c376.png-wh_500x0-wm_3-wmp_4-s_2600107434.png "Title=" 3.png "alt=" Wkiom1ge4vejcqvpaabieipaa2c376.png-wh_50 "/>

Next, all the other saved keys are regenerated once.
Ssh-keygen-t ed25519-f Ssh_host_ed25519_key
After the build is complete restart the SSHD service, if the key or not load, follow the above method to generate again. According to the principle, when the sshd service starts, the key is generated automatically, and the key generated here is not used. There was an error in the key generation during the cloning process. Such as

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/D1/wKioL1ge4wmQAytaAABoe8W3mlk828.jpg-wh_500x0-wm_3 -wmp_4-s_1671780809.jpg "title=" 4.jpg "alt=" wkiol1ge4wmqaytaaaboe8w3mlk828.jpg-wh_50 "/>650) this.width=650;" Src= "/e/u261/themes/default/images/spacer.gif" alt= "image" Style= "Color:rgb (51,51,51); Font-family:helvetica, Arial, FreeSans, clean, sans-serif;line-height:29.8667px;border:1px solid rgb (221,221,221); background-position:50% 50%;background-repeat:no-repeat; "/>

If the SSH host key is not found there, or if their size is truncated to 0 (as in the above), you will need to regenerate the host key from the beginning.


Could not load host key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.