I get the same problem above. run remote ssh script via terminal works, BUT not WORK in script mode. my case is creating dynamic gre tunnel after pppoe interfaces up, dynamic because public ip address assigned dynamically. I need to ssh remote machine to do create tunnel. i create in linux, work nor...