Problems when automating sftp

Hi Guys,

I am working on a shell script, which gets log files from a windows machine.

Problem:

  1. My server doesn't support FTP, so i am using SFTP

  2. I am not able to automate sftp using public key generation technique, because i need to access many windows machines using this script.

so please let me know if is there any way to automate sftp?