title: How to submit Plink "Access granted. Press Return to begin session" prompt automatically
body: <p>I'm writing a simple Windows batch script to allow me to execute some Linux command on my remote server with the help of <code>plink.exe</code>.</p>
  
  <pre><code>call set argument1=plink -pw mypwsswd username@172.19.48.111 cd ~/project; make clean; make -j8
  call plink %%argument1%%
  </code></pre>
  
  <p>In a word, it will rebuild my C++ project on the remote server.</p>
  
  <p>When I double click the batch, it works except that I have to type an <kbd>Enter</kbd> each time.</p>
  
  <blockquote>
    <p>Access granted. Press Return to begin session</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/BUHt6.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/BUHt6.jpg" alt="enter image description here"></a></p>
  
  <p>As you see, after I getting this windows, I have to type an <kbd>Enter</kbd> to continue.</p>
  
  <p>Is there some way to avoid this? For example, typing an enter automatically?</p>