Topic "Too many parameters for command open"

Author Message
SRK

Guest


Hi,

" Error : Too many parameters for command open "

I am trying to transfer the files using SFTP with Pair Key authorization: Please find the below script as similar to my original script

option batch on
option confirm off
open sftp://<UserName>@<Server> -privatekey=<Private Key>.ppk

I am currently using WinSCP 4.2.8.818(Size: 6.06 MB), I have also read the https://winscp.net/eng/docs/faq_script_switch but didn't find any solution.

Your suggestions/advice will really help us.

Thanks in advance.

SRK
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It's difficult to help without seeing the full command, but my guess is that you have a space in private key path and you have not enclosed the path to double-quotes.
See https://winscp.net/eng/docs/scripting#syntax
_________________
Martin Prikryl
Achmad

Guest


Hi,
I got the same message when run command as below:
open -explicittls -passive=on ftps://username:passwprd@foo.com:50021 -rawsettings ProxyMethod=3 ProxyHost=proxy.net ProxyPort=8080 ProxyUsername=itdept ProxyPassword=testonly

Please advise.

Achmad
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Achmad wrote:
I got the same message when run command as below:
open -explicittls -passive=on ftps://username:passwprd@foo.com:50021 -rawsettings ProxyMethod=3 ProxyHost=proxy.net ProxyPort=8080 ProxyUsername=itdept ProxyPassword=testonly

What version of WnSCP are you using? Make sure you have the latest one.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License