Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

barencibia

Re: Too much parameter

It is required to pass the path between double quotes -privatekey="..."
Try something like this:
open <username>@<sftp.server> -privatekey="<path-to-your-ppk-file>"
Pradip Kumar Nayak

Getting Error like [Too many parameters for command 'open']

Hi,
I am using WinSCP version 4.2.8.
When I execute the attached script file I got an error message
Too many parameters for command 'open'

Please help me to execute the script.
Thank you in advance.

Regards, Pradip
martin

Re: Too much parameter

@why: You are probably using an old version of WinSCP. The parameter is supported since 4.1.x only.
why

Too much parameter

Why! I'm using in script .txt
open sftp://<user>@<host> -privatekey=<privatekey Name>.ppk

It errors
Too many parameters for command 'open'.
martin

Re: how can i include private key in the open command

Edit 2023: Use -privatekey switch:
open -privatekey=mykey.ppk sftp://user@example.com/


Old obsolete answer:
You have several options:
hputumbaka@...

How can I include private key in the open command

I would like open a new session using the private key
ex:
open username:password@domainname.com

I don't see an option to include private key in the above command, I would like to automate the script I do not want to use GUI. I would appreciate if some can reply me. thank you.