gpt4 book ai didi

batch-file - WinSCP 主机 key 通配符选项不起作用

转载 作者:行者123 更新时间:2023-12-04 00:02:37 26 4
gpt4 key购买 nike

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

...In exceptional situations, when security is not required, you can use value * to accept any hostkey. In this case, script output and log file will include warning about insecure connection...

日志:

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:

最佳答案

-hostkey 开关使用接受所有值 (*) 的选项仅在 WinSCP 5.2 beta 之后可用。您可能使用的是旧版本。

参见 https://winscp.net/tracker/815


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

关于batch-file - WinSCP 主机 key 通配符选项不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16177025/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com