Topic "Can not connect to AIX with WINSCP 4.0.0 and Privatekey"

Author Message
swissbusinet
[View user's profile]

Joined: 2009-04-21
Posts: 1
Location: ch
Hello all!

I'm nubie with WinSCP.
I tried to script a simple fetch with wildcard.
I have the version 4.0.0 and I could not update (all downlaods blocked by the security)

This works to open the console:
winscp.exe /console /open sftp://user22@host21.mybank.ch -privatekey=RSA.key.ppk /script scp_kript.scp

This don't work
winscp.exe /console /command "open sftp://user22@host21.mybank.ch -privatekey=RSA.key.ppk" "ls"
I tried many variants. Including Skript file.

My question is how to add commands.

The task I'm on is to change from passwd auth to pub/privat key.

The old command which works over years:
pscp -l user22 -pw xxx -q host21:mydir/%rep%*.CSV %basefiles%

(%rep% and %basefile% are win batch vars)

Who could help?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
swissbusinet wrote:
This works to open the console:
winscp.exe /console /open sftp://user22@host21.mybank.ch -privatekey=RSA.key.ppk /script scp_kript.scp

There's no /open command line parameter. It is simply ignored.

Quote:
This don't work
winscp.exe /console /command "open sftp://user22@host21.mybank.ch -privatekey=RSA.key.ppk" "ls"
I tried many variants. Including Skript file.

This is correct. Though -privatekey switch to open command (as opposite to command line parameter /privatekey) has been introduced in 4.1 only. Please upgrade.
_________________
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