Problem solved.
Use puttygen.exe to save the private key withouth passphrase.
I know this is not the safest thing to do, but client wants it this way !
Sorry my bad.
Removing the PW from the open command does not change anything. Still being prompted for the password.
I now note that when using GUI I also need to enter Passphrase even though I have saved the Passphrase with the session.
So it maybe a general problem ?
/Poul
Why do you put in password, when you are authenticating using private key?
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