title: psftp says "The server's host key is not cached in the registry"
body: <p>I'm getting the following message when trying to connect to an SFTP server from PowerShell using <code>psftp</code>:</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>psftp.exe : 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.<br>
    The server's rsa2 key fingerprint is:ssh-rsa 2048 41289438190410491<br>
    Connection abandoned.</p>
  </blockquote>
  
  <p>PowerShell script:</p>
  
  <pre><code>$Username = "Username"
  $Password = "Password"
  
  psftp.exe sftpserver -l $Username -pw $Password -batch -bc -b C:\batch\download.bat
  </code></pre>
  
  <p>(psftp.exe is stored in c:\windows\system32)</p>
  
  <p>I've SSH into this server from this server before via PuTTY and WinSCP without issue. However, it won't connect when running via PowerShell.</p>