title: Shell script to automate SSH login using password
body: <p>I am trying to automate SSH login by using password. I can't use expect command or sshpass etc. So I am left with only option to use password directly.
  Did lot of research in google and didn't get any solution... :(</p>
  
  <p>Please help me with this.</p>
  
  <p>The code I tried is.</p>
  
  <pre><code>#!/bin/bash
  USERNAME=user1
  PASSWORD=abcd1234
  HOSTS="server01.mat.us"
  ssh ${HOSTS} -l ${USERNAME} -p ${PASSWORD}
  </code></pre>