本篇文章主要介绍了"解决linux中ssh登录Warning:Permanently added (RSA) to the list of known hosts",对于Linuxjrs看球网直播吧_低调看直播体育app软件下载_低调看体育直播感兴趣的同学可以参考一下:
从 远程 复制到文件 到本地
# scp scp root@10.1.11.210:/root/zbdata/api-148.log-2014090412.bz2 /root/zbdata
报Warning:Permanently added (RSA) to the list of known hosts错误
原因:在执行scp 时,没在本机的/root/.ssh下生成known_hosts文件。
解决方案:
# vi
/etc/ssh/ssh_config
最后有两行是
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
把这两行注释掉并保存文件
再次执行scp scp root@10.1.11.210:/root/zbdata/api-148.log-2014090412.bz2 /root/zbdata
出现提示
The
authenticity of host '10.1.11.210 (10.1.11.210)' can't be established.
RSA
key fingerprint is a0:09:89:d2:3b:aa:91:60:59:7f:7f:bc:03:31:b0:09.
Are
you sure you want to continue connecting (yes/no)?
输入yes后,则可看到在/root/.ssh目录下生成了known_hosts文件:
[root@host100
.ssh]# ls
id_rsa id_rsa.pub known_hosts
相关阅读:
Linux SSH登录慢案例分析
以上就介绍了解决linux中ssh登录Warning:Permanently added (RSA) to the list of known hosts,包括了方面的内容,希望对Linuxjrs看球网直播吧_低调看直播体育app软件下载_低调看体育直播有兴趣的朋友有所帮助。
本文网址链接:http://www.codes51.com/article/detail_94475.html