title: Respond y(es) to psftp host key prompt
body: <p>I am creating a script file programmatically and call <code>psftp.exe</code> as follows:</p>
  
  <pre><code>psftp user@hostname.com -pw password -b psftpscript.txt
  </code></pre>
  
  <p>but it prompts for user input</p>
  
  <blockquote>
    <p>The server's host key is not cached in the registry. You have no
    guarantee that the server is the computer you think it is. The
    server's rsa2 key fingerprint is: [ssh-rsa 1024 somekey]
    If you trust this
    host, enter "y" to add the key to PuTTY's cache and carry on
    connecting. If you want to carry on connecting just once, without
    adding the key to the cache, enter "n". If you do not trust this host,
    press Return to abandon the connection. Store key in cache? (y/n)</p>
  </blockquote>
  
  <p>I need it to be completely prompt free, automatic.
  I tried -batch parameter but it just abandons the connection</p>