I use WinSCP script to get data,whose name comprise of timestamp. But unfortunately, I am restricted at the very first while authenticating.
    Here my script that i use
    option batch abort
option confirm off
open sftp://user:password@10.10.10.10/ -hostkey="ssh-rsa 2048 XX:XX:....:XX"
cd /bam/backup
option transfer binary
get filename.%TIMESTAMP#yyyymmdd%
close 
exit
 
while i use this at line 3, i get a prompt "Too many arguments"
when i replace it by just  
then "password=  " prompt is highlighting,but after giving password ,i get  the tag like "KEYBOARD INTERACTIVE AUTHENTICATION , ACCESS DENIED". then prompt for password needed is showing again,but don't log in.
I have some queries:::::::: 
1.Can i use generated key by Puttygen function as hostkey ,Here i use it.
2.Can i use any user rather than root,Here i don't use root.