Ssh login prompt & quot; Host key verification failed. & quot; Solution

Source: Internet
Author: User

The ssh logon prompt "Host key verification failed. "solution 1. In some cases, when different ports are connected to different linux Hosts like an IP address, this prompt may be displayed. 2. The error message is as follows: @ WARNING: remote host identification has changed! @ It is possible that someone is doing something nasty! Someone cocould be eavesdropping on you right now (man-in-the-middle attack )! It is also possible that the RSA host key has just been changed. the fingerprint for the RSA key sent by the remote host is 23: 00: 20: 83: de: 02: 95: f1: e3: 34: be: 57: 3f: cf: 2c: e7. Please contact your system administrator. add correct host key in/home/xahria /. ssh/known_hosts to get rid of this message. offending key in/home/xahria /. ssh/known_hosts: 8 RSA host key for localhost has changed and you have re Quested strict checking. Host key verification failed. 3. Anyone using OpenSSH knows that ssh will record the public key of every computer you have accessed ~ /. Ssh/known_hosts. When you access the same computer next time, OpenSSH checks the public key. If the public key is different, OpenSSH will issue a warning to avoid attacks such as DNS Hijack. 4. In. configuration item StrictHostKeyChecking in ssh/config (or/etc/ssh/ssh_config): The default value is ask. If the connection and key do not match, a prompt is displayed and logon is denied, it is commented out by default. Yes: if the connection does not match the key, the connection is rejected and no prompt is displayed. No: if the connection key does not exist locally, it is automatically added to the file (known_hosts by default) and a warning is given to indicate that the connection is successful. 5. To prevent warnings and resolve connections between different ports of the same IP address, you can selectively reduce the security by using the following Configuration: vi/etc/ssh/ssh_config StrictHostKeyChecking no UserKnownHostsFile/dev/null # Set knownhostfile to/dev/null and it will not be saved in known_hosts.

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.