script help with key public key authentication

Advertisement

codywang
Guest

script help with key public key authentication

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"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: script help with key public key authentication

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"

Reply with quote

Freitag
Freitag avatar
Joined:
Posts:
75

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.

Reply with quote

Advertisement

You can post new topics in this forum