Topic "script help with key public key authentication"

Author Message


Dear Sir,

I have script is able to login by by using public key authentication as below. However, it doesn't execute anything afterward, such as 'cd INBOUND". Any Idea? I even tried to put before open

"C:\Program Files\WinSCP\" /log=C:\Inetpub\ftproot\CSTCCxFTP\CSTCCBatch\ADP\DP\DP.log-%datestr%-%timestr%.log /command "option batch abort" "open CINCISTATEpPSSsftp@" /hostkey ="ssh-rsa 1023 37:4a:1c:5e:5b:0f:14:ef:31:81:42:b6:d7:fc:c5:db" "cd INBOUND" "put dp.log"
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Should be:
"C:\Program Files\WinSCP\" /log=C:\Inetpub\ftproot\CSTCCxFTP\CSTCCBatch\ADP\DP\DP.log-%datestr%-%timestr%.log /command "option batch abort" "option confirm off" "open -hostkey=""ssh-rsa 1023 37:4a:1c:5e:5b:0f:14:ef:31:81:42:b6:d7:fc:c5:db"" CINCISTATEpPSSsftp@" "cd INBOUND" "put dp.log"
Martin Prikryl
[View user's profile]

Joined: 2011-12-01
Posts: 1
How can I change this line?
[View user's profile]

Joined: 2007-10-25
Posts: 51
Siamquer wrote:
How can I change this line?

This is referring to one part of a larger script file. Probably some big FOO.BAT

This is not part of teh connection attempt when running the GUI version, only command line version.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License