Solve the Problem of logging on to Warning through ssh in linux: Permanently added (RSA) to the list of known hosts, sshpermanently

Source: Internet
Author: User

Solve the Problem of logging on to Warning through ssh in linux: Permanently added (RSA) to the list of known hosts, sshpermanently

Copy files from remote to local

# Scp root@10.1.11.210:/root/zbdata/api-148.log-2014090412.bz2/root/zbdata

The error "Warning: Permanently added (RSA) to the list of known hosts" is reported.

 

Cause:When scp is executed, the known_hosts file is not generated in the local/root/. ssh file.

Solution:
# Vi/etc/ssh/ssh_config
The last two rows are:
StrictHostKeyChecking no
UserKnownHostsFile/dev/null
Comment out the two lines and save the file.
Execute scp root@10.1.11.210 again:/root/zbdata/api-148.log-2014090412.bz2/root/zbdata
Prompt

Theauthenticity of host '10. 1.11.210 (10.1.11.210) 'can't be established.
RSAkey fingerprint is a0: 09: 89: d2: 3b: aa: 91: 60: 59: 7f: 7f: bc: 03: 31: b0: 09.
Areyou sure you want to continue connecting (yes/no )?

After entering yes, The known_hosts file is generated in the/root/. ssh directory:


[Root@host100.ssh] # ls
Id_rsa id_rsa.pub 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.