WinSCP "Too many parameters for command 'open'." 错误
WinSCP "Too many parameters for command 'open'." error
我正在尝试使用以下命令连接到 SFTP,以将所有 .csv 文件从一个位置移动到另一个位置,但出现 "Too many parameters for command 'open'." 错误.
option echo off
option batch on
option confirm off
open sftp://XXX@XXX.com/ —hostkey="ssh-rsa 2048 XX:XX:XX:XX:XX:XX:XX" —rawsettings ProxyMethod=3 ProxyHost=proxy.uk.XXX.com
cd /XX/XX/XX/IN/LOAD
lcd \XX.local\EMEA\XX\XX\Import_Location
put *.csv -nopreservetime=on -nopermissions=on
exit
由于"The server's host key was not found in the cache"错误,我添加了—hostkey
参数,批处理文件之前工作正常,但我想更正主机按键错误。
我检查了所有 dashes, the quotes, the only thing I'm confused about is whether the hostkey parameter is correct. The information online on WinSCP 并且一些论坛说您只能使用主机密钥的 SHA-256 指纹,这与 MD5 详细信息的格式不同 XX:XX:XX:XX....
请您帮忙一个是?
—hostkey="ssh-rsa 2048 XX:XX:XX:XX:XX:XX:XX"
或
—hostkey="ssh-rsa 2056 AbC50IDzyx.....="
是一个与我的类似的查询,但我看不出有什么区别,所以他们的有效而我的无效。谢谢。
获取正确的主机密钥指纹:
你在—hostkey
和—rawsettings
开头的符号不是简单的hyphen-minus (-
), but em-dash(—
)。
请使用连字符减号 (-
) – 您在标准英语[和其他]键盘上找到的破折号是什么。
或者更简单,WinSCP GUI generate a script template for you。
所以实际上您遇到的问题与 WinSCP forum post you referred to.
中的问题完全相同
其他错误信息相同但问题不同的问题:
- FTP "Too many parameters for command 'synchronize'" with WinSCP
我正在尝试使用以下命令连接到 SFTP,以将所有 .csv 文件从一个位置移动到另一个位置,但出现 "Too many parameters for command 'open'." 错误.
option echo off
option batch on
option confirm off
open sftp://XXX@XXX.com/ —hostkey="ssh-rsa 2048 XX:XX:XX:XX:XX:XX:XX" —rawsettings ProxyMethod=3 ProxyHost=proxy.uk.XXX.com
cd /XX/XX/XX/IN/LOAD
lcd \XX.local\EMEA\XX\XX\Import_Location
put *.csv -nopreservetime=on -nopermissions=on
exit
由于"The server's host key was not found in the cache"错误,我添加了—hostkey
参数,批处理文件之前工作正常,但我想更正主机按键错误。
我检查了所有 dashes, the quotes, the only thing I'm confused about is whether the hostkey parameter is correct. The information online on WinSCP 并且一些论坛说您只能使用主机密钥的 SHA-256 指纹,这与 MD5 详细信息的格式不同 XX:XX:XX:XX....
请您帮忙一个是?
—hostkey="ssh-rsa 2048 XX:XX:XX:XX:XX:XX:XX"
或
—hostkey="ssh-rsa 2056 AbC50IDzyx.....="
获取正确的主机密钥指纹:
你在—hostkey
和—rawsettings
开头的符号不是简单的hyphen-minus (-
), but em-dash(—
)。
请使用连字符减号 (-
) – 您在标准英语[和其他]键盘上找到的破折号是什么。
或者更简单,WinSCP GUI generate a script template for you。
所以实际上您遇到的问题与 WinSCP forum post you referred to.
中的问题完全相同其他错误信息相同但问题不同的问题:
- FTP "Too many parameters for command 'synchronize'" with WinSCP