title: Specify password to sftp in a Bash script
body: <p>I am trying to write a script to back up a file over SFTP. The problem is, it requires a password, and I see no way to manually specify a password to SFTP. I've heard about requiring no password by using public keys, but that requires being able to ssh into the remote server and modify some configuration files, which I cannot do. </p>
  
  <p>Currently my solution is to use <a href="http://en.wikipedia.org/wiki/CURL" rel="noreferrer">cURL</a>, but that is insecure (uses normal FTP). I also looked at the <code>.netrc</code> file, but that seems to be for FTP instead of SFTP. How do I manually specify a password for sftp?</p>