title: nodejs execute command on remote linux server
body: <p>From nodejs I have been trying to execute linux commands on remote server and get the output in stream for further processing. For connecting to remote linux server , I have all necessary details like serverip, username and password. I searched a lot on internet and found that this can be achieved by ssh. </p>
  
  <p><a href="https://stackoverflow.com/questions/38624936/can-nodejs-ui-page-run-shell-cmd-to-remote-machine-and-run-script">Can Nodejs ui page run shell cmd to remote machine and run script</a></p>
  
  <p>But this answer a bit confusing and I didn't get how to use password in connection.</p>
  
  <p>Pointer to any working example would be great help.</p>