The server's host key is not cached in the registry. You have no guarantee that the server……(示例
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The server's host key is not cached in the registry. You have no guarantee that the server……(示例相关的知识,希望对你有一定的参考价值。
使用putty中的pscp.exe ,可以通过脚本方式实现windows向linux上传文件,但pscp.exe第一次运行时必须手工输入确认信息,本文主要解决掉初次运行时的人工交互,彻底实现静默运行。这个方案可以用于很多任务计划程序中
错误信息:The server‘s host key is not cached in the registry. You have no guarantee that the server is the computer you think it is.
解决方案:
1. 新建一个文本文件,输入 Y 然后换行
例如:confirm.txt:
Y
<空行>
2. 在pscp.exe命令的最后以文件方式重定向输入Y,示例如下:
< confirm.txt
说明,重定向输入符 ‘<‘ 将重定向文本内容作为pscp命令的输入,自动回答运行pscp时候的提示
3 下面是我自己的一个例子,仅供参考
::设置运行时间 set datevar=%date:~0,4%%date:~5,2%%date:~8,2% ::开始运行pscp,并以文件形式进行重定向输入 c:\vminfo\PSCP.EXE -q -pw x33+esaC c:\Vminfo\test\RunningTask* [email protected]:/Vminfo/ < C:\VMInfo\test\confirm.bat ::打印日志 echo "######EndTime--%datevar%:%time%########" >> c:\VMInfo\test\Running1.log
参考:
http://www.sqlservercentral.com/Forums/Topic281954-9-3.aspx
以上是关于The server's host key is not cached in the registry. You have no guarantee that the server……(示例的主要内容,如果未能解决你的问题,请参考以下文章
Permanently added the RSA host key for IP address '192.30.253.113' to the list of known host
拉取远程仓库到本地错误The authenticity of host 'github.com (13.229.188.59)' can't be established.(示
Warning: Permanently added the RSA host key for IP address '52.74.223.119' to the list of kn
The authenticity of host 'slaver2 (192.168.199.132)' can't be established. RSA key finge
Warning: Permanently added the RSA host key for IP address ‘13.250.177.223‘ to the list of known(代码片