title: SFTP Connection with out password prompt
body: <p>I am trying to move txt/ log file from server1 to server2.</p>
  
  <p>I am trying to connect to a server from server1 to server2 using SFTP but some how it is asking for password in the prompt.Can anyone let me know how to give password as input through script and execute this functionality using a Script.
  Please let me know asap......</p>
  
  <p>MY CODE:</p>
  
  <p>test.sh is script and 1.txt file has password details.....</p>
  
  <p>code: test.sh
  sftp mwctrl@sacsun11 &lt; 1.txt &lt;> out.log 2>&amp;1
  cd /usr/ftadapters/logs/adapters/rivaadp
  lcd /export/home/eisape
  put *.txt
  exit
  EOF</p>
  
  <p>1.txt:
  password m33tzn3</p>