sftp batch script with password

I am working on a sftp batch script on a Solaris machine and I need to connect using password. This is not an issue when i do it manually but when I want to make this into a script, i find there are no options for password.

Can anyone suggest how I can do it with password? I know using keys is the prefered way but I am not given access to set up keys in the remote side and password access is the only way...

please refer here

Google Search Results for sftp password | The UNIX and Linux Forums

I have searched before.
The solutions are to use keys, or to use expect script on the local computer. Unfortunately, I do not have access to add scripts or to use keys...

Then, you or your manager should speak with your unix admin team and ask them to setup the key or install the expect utility.

:frowning:

---------- Post updated at 11:52 AM ---------- Previous update was at 11:37 AM ----------

otherwise, you can use the perl

Net::SFTP - search.cpan.org