title: Run ssh on Apache -> Failed to get a pseudo terminal: Permission denied
body: <p>I'm using flask with apache(mod_wsgi).</p>
  
  <p>When I use ssh module with external command <code>subprocess.call("ssh ......",shell=True)</code></p>
  
  <p><br><br>
  (My Python Flask code : Not wrong)<br></p>
  
  <p><code>ssh = "sshpass -p \""+password+"\" ssh -p 6001 "+username+"@"+servername+" \"mkdir ~/MY_SERVER\""</code></p>
  
  <p><code>subprocess.call(ssh, shell=True)</code></p>
  
  <p><br><br>
  I got this error on Apache error_log :  <code>Failed to get a pseudo terminal: Permission denied</code></p>
  
  <p>How can I fix this?</p>