title: Using Putty to SSH ignoring all warnings in Perl
body: <p>I'm writing a Perl script to SSH into remote linux and maci machines from a windows. For that I'm running <a href="https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter7.html" rel="nofollow noreferrer"><code>plink</code> (putty link)</a> command using <code>qx</code>. The  problem is that when I try to run the <code>plink</code> command it gives a prompt</p>
  
  <blockquote>
    <p>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. ......  If you do not trust this host, press Return to abandon the
    connection. Store key in cache? (y/n)</p>
  </blockquote>
  
  <p>I have to automate the process of running a command remotely. So, I somehow want to bypass this warning.</p>
  
  <p>I could think of two ways of doing this but don't know how to accomplish these</p>
  
  <ul>
  <li>Somehow bypass this warning from putty itself through some command line options or other commands</li>
  <li>Some Perl way of passing input to <code>plink</code> when prompted</li>
  </ul>
  
  <p>Can anyone suggest how to do this either in one of above ways or some other solutions.</p>