Using scriptfile will not log on. Keeps prompting for PW
Hi,
Even though password is specified in scripts open command I must enter password manually in order to log on. GUI works as expected.
Command:
------------
winscp.exe /console /script="d:\Programmer\WinSCP\command.txt"
Script - command.txt:
------------------------
option batch on
option confirm off
open sftp://USERNAME:Pasword@host:10022 -privatekey="C:\keystore\PuTTY\id_rsa.ppk" -hostkey="ssh-dss 2048 31:2a:18:3b:90:fe:20:a8:83:e9:3f:1f:90:78:e6:ef"
pwd
close
exit
I should mention that private key has been converted by PuTTY from DSA to RSA.
Cheers,
/Poul
Even though password is specified in scripts open command I must enter password manually in order to log on. GUI works as expected.
Command:
------------
winscp.exe /console /script="d:\Programmer\WinSCP\command.txt"
Script - command.txt:
------------------------
option batch on
option confirm off
open sftp://USERNAME:Pasword@host:10022 -privatekey="C:\keystore\PuTTY\id_rsa.ppk" -hostkey="ssh-dss 2048 31:2a:18:3b:90:fe:20:a8:83:e9:3f:1f:90:78:e6:ef"
pwd
close
exit
I should mention that private key has been converted by PuTTY from DSA to RSA.
Cheers,
/Poul