【问题标题】:WinSCP hostkey wildcard option not workingWinSCP 主机密钥通配符选项不起作用
【发布时间】:2013-04-23 18:51:31
【问题描述】:

我正在尝试使用the docs page here 中提到的任何主机密钥(* 通配符)选项打开会话...但它没有按预期工作。

...在特殊情况下,当不需要安全性时,您可以使用 value * 来接受任何主机密钥。在这种情况下,脚本输出和日志文件将包含有关不安全连接的警告...

日志:

C:\Users\s.mailappan>"C:\Program Files (x86)\WinSCP\WinSCP.com" /console /comman
d "open ssamperf:ssperf123@111.252.2.13 -hostkey=*" "option batch on" "lcd C:\Us
ers\s.mailappan\Documents\Samsung-Sprint\Hourly-Alarm-Logs" "get /home/ssamperf/
PerlScript/Akron_WSS_HOURLYALARMREPORT/LOGS/Akron_WSS1_HOURLYALARMREPORT_NEW.txt
 "  "get /home/ssamperf/PerlScript/Chicago_WSS_HOURLYALARMREPORT/LOGS/Chicago_WS
S1_HOURLYALARMREPORT_NEW.txt " "exit"
Searching for host...
Connecting to host...
Authenticating...
The server's host key was not found in the cache. You have no guarantee that the
 server is the computer you think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 38:b4:75:23:2d:d5:70:2c:ad:c0:d0:e2:9d:2d:72:9e
If you trust this host, press Yes. To connect without adding host key to the cac
he, press No. To abandon the connection press Cancel.
Continue connecting and add host key to the cache?
(Y)es, (N)o, C(a)ncel, (C)opy Key:

【问题讨论】:

    标签: batch-file automation ssh-keys winscp


    【解决方案1】:

    对于-hostkey 开关使用全部接受值 (*) 的选项仅在 WinSCP 5.2 测试版之后才可用。您可能使用的是旧版本。

    https://winscp.net/tracker/815


    还要确保您了解自己在做什么。通过使用此开关,您将放弃任何安全性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-08
      • 2010-12-01
      • 2014-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多