title: ssh connect to user on another server and execute shell commands as that user
body: <p>While I am connecting to another server using <code>ssh</code> I am using 'EOF' marker to execute some commands in remote server. But they are failing to execute commands on remote server.   </p>
  
  <p>Also when password-less <code>ssh</code> connectivity is not enabled, how to input password from the script without requiring the user to enter password?</p>
  
  <pre><code>$ su - oracle &lt; passwd.txt
  standard in must be a tty
  </code></pre>