I\'m trying to download a file from sftp site using batch script. I\'m getting the following error:
Permission denied (publickey,password,keyboard-interactiv
PSFTP -b path/file_name.sftp user@IP_server -hostkey 1e:52:b1... -pw password
the file content is:
lcd "path_file for send" cd path_destination mput file_name_to_send quit
to have the hostkey run:
psftp user@IP_SERVER