|I am trying to create a new script which needs to upload/download files by using SFTP protocol. For that, I would like to automate that script. I know that sftp command is having a option to process those commands in a batch file by using -b option.|
I tried as follows:
sftp -bmybatfile username@host
While running the command, it is asking for password. But, I already mentioned the password in the batchfile. Since I need to connect some other external server's SFTP, it is hard to get the authentication key and install the same in my box. So, can you guys let me know what is the problem with the script?
Thanks in advance