title: How to input SSH password in batch file
body: <p>I am trying to make a batch file which connects to my router via SSH and executes some commands. The batch file currently looks like:</p>
  
  <pre><code>ssh user@192.168.1.1
  configure
  etc.....
  </code></pre>
  
  <p>When I run the batch file the first line executes, and then the command window asks </p>
  
  <pre><code>user@192.168.1.1's password:
  </code></pre>
  
  <p>After inputting the password, the second line does not execute <em>(I imagine this is obvious to someone who knows what they're doing)</em></p>
  
  <p>I'm looking for a solution that either lets me manually enter the password and then lets the script continue, or one where the script enters the password itself.</p>