title: ssh with password
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/233217/pass-password-to-su-sudo-ssh">pass password to su/sudo/ssh</a><br>
    <a href="https://stackoverflow.com/questions/6191898/ssh-in-shell-scipt-with-password">SSH in shell scipt with password</a>  </p>
  </blockquote>
  
  
  
  <p>Is there any possibility I can pass password for ssh command </p>
  
  <pre><code>ssh root@10.20.30.40 | echo "Password" (or)      
  echo "Password" | ssh root@10.20.30.40 (or) a script like below  
  pw1="Password"
  ssh -t root@168.56.64.245 &lt;&lt;&lt; EOF  
  $pw1  
  EOF
  </code></pre>
  
  <p>Any solution can be helpful.  </p>
  
  <p>I was on windows and I was connecting to Linux host with putty and from that Linux to another Linux host. The problem is I can't use any 3rd party tools on Linux hosts and I can't add rsa-keys also.</p>