title: Access Denied with psftp
body: <p>I have a command line script that calls psftp.exe and passes in a number of parameters.
  Below is the line from the batch script that I am running:</p>
  
  <pre><code>psftp -P 122 abc123@ftp.test.com -pw password 
  </code></pre>
  
  <p>(I am not passing in a file using -b yet as I want to see if I can connect first)</p>
  
  <p>On running this batch script I get the following output:</p>
  
  <pre><code>using username "abc123"
  access denied
  </code></pre>
  
  <p>When I run this script with the verbose flag enabled I get the following output:</p>
  
  <pre><code>Looking for host "abc123"
  Connecting to "&lt;IP&gt;" port 122
  Server Version: SSH-2.0
  Using SSH protocol version 2
  We claim version: SSH-2.0-PuTTY_Release_0.63
  Attempting keyboard-interactive authentication
  Server Refused keyboard-interactive authentication
  Sent Password
  Password authentication Failed
  Access Denied
  </code></pre>
  
  <p>I have tried to connect using the same credentials through file zilla and can connect fine. Seems to be failing when sending the username to the server in the first example but failing at the password step in the later example. </p>
  
  <p>Im a bit lost on what to try next; Can anyone help with this?</p>
  
  <p>appreciate any help</p>