我正在用apache(mod_wsgi)使用flask。在Apache上運行ssh - >無法獲得僞終端:Permission denied
當我使用ssh模塊與外部命令subprocess.call("ssh ......",shell=True)
(我的Python瓶代碼:沒有錯)
ssh = "sshpass -p \""+password+"\" ssh -p 6001 "+username+"@"+servername+" \"mkdir ~/MY_SERVER\""
subprocess.call(ssh, shell=True)
我得到這個Ë在Apache error_log上的錯誤:Failed to get a pseudo terminal: Permission denied
我該如何解決這個問題?