title: Executing SSH with ShellJs
body: <p>I have been using shelljs to execute certain set of commands. So i tried to connect to a remote ubuntu server over ssh via shelljs.
  This is my nodejs file.</p>
  
  <pre><code>var shelljs = require('shelljs');
  shelljs.exec('ssh -i [path/to/pem/file] ubuntu@[taregt_ip]');
  </code></pre>
  
  <p>But i get this error: </p>
  
  <pre><code>Pseudo-terminal will not be allocated because stdin is not a terminal.
  </code></pre>
  
  <p>So how to solve this issue or is there any other utility to connect to ssh with one single command.</p>
  
  <p>EDIT: the link you guys are posting for me to refer in not the duplicate of my problem.</p>