sftp from shell script

I need to create a script that will download files from a remote server using SFTP

I have a script at the moment with commands that work, but I need a way of getting the script to send the password to the server.

How do I do that?

Does anyone have an SFTP over shell script that they could share.

 

 

 

 

Top