SFTP connection not working when we use script option

Advertisement

Dhanasekara pandian
Joined:
Posts:
1
Location:
India

SFTP connection not working when we use script option

Hi,

I am using WINSCP 5.13 and Windows 10.

I tried to connect SFTP in command prompt like following. "open sftp://****@**.***.**.** -privatekey="W:\Private.ppk" -passphrase=****" after getting in to WINSCP. It is working fine.

I tried the same using a script file like """C:\Program Files (x86)\WinSCP\WinSCP.exe" /ini=nul /script="W:\SendFileCommands.txt".

File has the following script "open sftp://****@**.***.**.** -privatekey="W:\Private.ppk" -passphrase=****".

When I run using script, is is failing to authenticate and expects the Hostkey.

May I know why it requires host key while we try to run the same using script?

Could you please give me the solution for this?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum