windows-services – 使用pscp.exe时跳过主机检查
发布时间:2020-12-14 05:42:22 所属栏目:Windows 来源:网络整理
导读:我们在默认的 Windows Local System帐户下运行Windows服务.此服务尝试使用pscp.exe将文件传输到服务器.这是我们发射的确切命令: pscp.exe -batch -r -q -v -l **** -pw **** C:/temp/test my-server-host-name:/bnrr2p3 请注意使用–batch选项以避免任何提
我们在默认的
Windows Local System帐户下运行Windows服务.此服务尝试使用pscp.exe将文件传输到服务器.这是我们发射的确切命令:
pscp.exe -batch -r -q -v -l **** -pw **** C:/temp/test my-server-host-name:/bnrr2p3 请注意使用–batch选项以避免任何提示.现在这会失败,因为服务器名称尚未添加到已知主机列表中,并显示以下错误: Looking up host "my-server-host-name" Connecting to 10.89.3.108 port 22 Server version: SSH-2.0-Sun_SSH_1.1.4 Using SSH protocol version 2 We claim version: SSH-2.0-PuTTY_Release_0.62 Doing Diffie-Hellman group exchange Doing Diffie-Hellman key exchange with hash SHA-1 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. The server's rsa2 key fingerprint is: ssh-rsa 1024 10:a8:36:6a:be:99:2c:e0:1c:18:80:28:c8:e5:dd:9b Connection abandoned. Disconnected: User aborted at host key verification Lost connection 谷歌说我需要先手动登录到该服务器,然后将该服务器添加到列表中.如果我以特定用户身份运行它,我可以这样做. 如何使其适用于Windows本地系统帐户? 解决方法
在命令提示符中使用PsExec.exe -i -s cmd.将使用SYSTEM Default帐户打开新的命令提示符.手动运行该命令并接受一次主机密钥.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何设置win32 api c按钮背景颜色和文字颜色?
- virtualbox ose windows二进制文件
- windows-phone-7 – 更改SystemTray进度指示器颜色
- Windows – 使用WiX创建IIS虚拟目录
- windows-server-2012 – Windows 8.1和Windows Server 2012
- windows – Mysql更改ft_max_word_len错误
- 我应该为Windows快捷方式文件(.URL)添加什么MIME类型
- windows-xp – 如何使用像Windows XP一样的阴影在桌面图标上
- 【Win10】让 TextBlock 按字符换行
- Azure VM Windows数据磁盘 – 如何知道它是HDD还是SSD?
推荐文章
站长推荐
热点阅读