Topic "script help with key public key authentication"

Author Message
codywang

Guest


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\"winscp.com /log=C:\Inetpub\ftproot\CSTCCxFTP\CSTCCBatch\ADP\DP\DP.log-%datestr%-%timestr%.log /command "option batch abort" "open CINCISTATEpPSSsftp@170.146.246.0" /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"
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Should be:
"C:\Program Files\WinSCP\"winscp.com /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@170.146.246.0" "cd INBOUND" "put dp.log"
_________________
Martin Prikryl
Siamquer
[View user's profile]

Joined: 2011-12-01
Posts: 1
How can I change this line?
Freitag
[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.
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