Topic "how can i include private key in the open command"

Author Message
hputumbaka@...

Guest


I would like open a new session using the private key
ex: open username:password@domainname.com
I dont 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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You have several options:
Guest




prikryl wrote:
You have several options:


using the private key option, how do you call the script file?
what is the syntax or is this even possible?
How do I get and put files out there using private key option?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
In the latest version you have one more option, to use -privatekey switch with "open" command.
_________________
Martin Prikryl
why

Guest


why! i using in script .txt

open sftp://<user>@<host> -privatekey=<privatekey Name>.ppk

it's error : Too many parameters for command 'open'.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
why wrote:
why! i using in script .txt

open sftp://<user>@<host> -privatekey=<privatekey Name>.ppk

it's error : Too many parameters for command 'open'.

You are probably using an old version of WinSCP. The parameter is supported since 4.1.x only.
_________________
Martin Prikryl
Guest




Hello,

i am using winscp 4.2.7, and I still get the same error message.

Thanks
Guest




Hello,

i am using winscp 4.2.7, and I still get the same error message. Could any one advise what is the correct command? what shall I do?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Anonymous wrote:
i am using winscp 4.2.7, and I still get the same error message. Could any one advise what is the correct command? what shall I do?

Post an example of the command you are using.
_________________
Martin Prikryl
pradip

Guest


Error
Pradip Kumar Nayak

Guest


Hi,
i am using winscp version 4.2.8.
when i excute the attached script file i got an error message
[Too many parameters for command 'open'].

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

Regards,
Pradip
test.txt (284 Bytes) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Pradip Kumar Nayak wrote:
i am using winscp version 4.2.8.
when i excute the attached script file i got an error message
[Too many parameters for command 'open'].

Pleaase read FAQ:
https://winscp.net/eng/docs/faq_script_switch
_________________
Martin Prikryl
Guest




prikryl wrote:
why wrote:
why! i using in script .txt

open sftp://<user>@<host> -privatekey=<privatekey Name>.ppk

it's error : Too many parameters for command 'open'.

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



!!!!!!!!!!!finaly found somebody who can help !!!!!!!!!!!!!!!! thanks
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