title: Using 'expect' to automatically send in password
body: <p>I am trying to copy a file from my remote server to my local. Here's my script to run it, by using 'expect' to automaticlally send in password</p>
  
  <pre><code>scp user@host:/folder/myFile ./
  expect "Password: "
  send "myPassword"
  </code></pre>
  
  <p>When I run this, it still prompts for "Password", what is wrong?</p>