Log on to Permanently added (RSA) to the list of known host through ssh in linux

Source: Internet
Author: User

In linux, ssh logon to Permanently added (RSA) to the list of known hosts solves the following problems: 1 [root @ www] # ssh admin@xxx.xxx.xxx.xxx2The authenticity of host 'xxx. xxx. xxx. xxx can't be established.3RSA key fingerprint is f4: d0: 1a: 9c: 09: 65: 78: 71: 25: 33: 79: c2: d5: aa: 0b: c1.4Are you sure you want to continue connecting (yes/no )? No5Host key verification failed.6 [root @ www] # If it is directly input yes1 [root @ www] # ssh admin@xxx.xxx.xxx.xx2The authenticity of host 'xxx. xxx. xxx. xxx 'can't be established.3RSA key fingerprint is f4: d0: 1a: 9c: 09: 65: 78: 71: 25: 33: 79: c2: d5: aa: 0b: c1.4Are you sure you want to continue connecting (yes/no )? Yes5Warning: Permanently added 'xxx. xxx. xxx. xxx '(RSA) to the list of known hosts.6Permission denied (publickey, gssapi-with-mic, password ). 7 [root @ www] #1. You can change ~ /. Ssh/known_hosts clear 2. If the/etc/ssh/sshd-config file still cannot be modified, change PermitRootLogin no to yes, and change PubkeyAuthentication yes to no and AuthorizedKeysFile. add # block before ssh/authorized_keys, and change PasswordAuthentication no to yes. 3. If the problem persists, use the following method: Use the command ssh-l username hostname1Are you sure you want to continue connecting (yes/no )? 1. This is an RSA Authentication for ssh security authentication. Select yes to connect. After "yes" for the first time, he will ask you if you want to permanently add the RSA Authentication to the local device. After "yes" is selected, no reminder will appear in the future. You only need to enter the password for each login. 2. You do not need to enter yes in 1, but you need to modify the local configuration. 2 # StrictHostKeyChecking ask in 1/etc/ssh/ssh_config to 3 StrictHostKeyChecking no

Related Article

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.