Topic "Logging in via script and parsing ppk key."

Author Message
SteveF
[View user's profile]

Joined: 2011-04-18
Posts: 3
Location: London, UK
Hi

I'm extremely new to this so if I'm asking silly questions do excuse me, although I have spent considerable time trying to resolve this personally.
I am writing a script to eventually get several sets of files daily. I am writing and testing the script bit by bit but unfortunatly I have not even managed to logon succussfully yet Embarassed . The logon requires the parsing of a ppk key. So far I have written in format of below:

option batch on

option confirm off

open sftp_USER:PASSWORD@123.45.67.89:22 -privatekey=C:\Private.ppk

But when I run this I am getting the message:

Too many parameters for command 'open'

Any help would be fantastic - I have scoured the winscp site but can find nothing of any real help, I have tried using the / switch instead of - to define the parsing of the private key but it seems I'm confused on the simplest of fundamentals....

Best
Steve
Advertisements
SteveF
[View user's profile]

Joined: 2011-04-18
Posts: 3
Location: London, UK
Hi Guys,

I know I can login with the following

open sftp_USER:PASSWORD@123.45.67.89:22

But then how do you parse the ppk key after?

Thanks
Steve
SteveF
[View user's profile]

Joined: 2011-04-18
Posts: 3
Location: London, UK
No worries guys I have found the problem, my version of Winscp is older and does not recognise switches
Binky
[View user's profile]

Joined: 2011-08-10
Posts: 2
Location: usa
Thanks guys for the info!!! I could finally fix my problem. It works good now.Smile
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