title: sftp code required with out prompting for a password
body: <p>Working code for ftp is as follows</p>
  
  <pre><code>#!/bin/sh
  HOST='host ip address'
  USER='yourid'
  PASSWD='yourpw'
  FILE='output_file.csv'
  ftp -n $HOST &lt;&lt;END
  quote USER $USER
  quote PASS $PASSWD
  put $FILE
  quit
  END
  exit 0
  </code></pre>
  
  <p>This is a working ftp code for file transfer. What modification have to be done in this code to make it a Working SFTP code?</p>