title: sftp file download script
body: <p>I am trying to download a from from a remote sftp location so for this I am using below script.</p>
  
  <pre><code>#!/bin/bash
  expect -c "
  spawn sftp remoteUser@xx.xx.xx.xx
  expect \"password\"
  send \"User@123\r\"
  interact "
  </code></pre>
  
  <p>The problem is in the remote server some information msg configure when you login the server, so because of this password send before this text comes on screen.</p>