title: How to get over Keyboard-interactive authentication prompt in batch file for transferring files to SFTP server
body: <p><a href="https://i.stack.imgur.com/Uw9j2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uw9j2.jpg" alt="error"></a></p>
  
  <p>I am trying to transfer some text files on SFTP Server using Putty command line option.</p>
  
  <p>I have a batch file with the following commands:</p>
  
  <pre><code>(
  echo cd /inbox
  echo mput c:\temp\*.txt
  echo bye
  echo cd c:\temp\
  echo del c:\temp\*.txt
  ) |echo open &lt;username@ip&gt; &lt;port no&gt; -pw password
  </code></pre>
  
  <p>However, when I execute the batch file I get stuck at "Keyboard interactive prompt from Server"</p>
  
  <p>Appreciate any suggestions on how to get over this point to avoid manual intervention while executing this batch file?</p>