Page 1 of 1

SSH Connection

Posted: Wed Dec 01, 2010 7:27 pm
by codehound
Hi,
I am try to get my PHP code to execute a shell script. Usually this is an easy task with exec or the like, but I have run into a headwall with my current script. The PHP calls a script which will upload a file and transfer it to another server. My thought is that there is a file permission issue here. Does anyone have an idea of where I should be searching.

shell is "rsh -l [username] [server ip] "mkdir testDir"

I am call it from the php

system("./TestScript")

Re: SSH Connection

Posted: Thu Dec 02, 2010 4:51 am
by VladSun
Probably you need to configure public/private key access (otherwise it will wait for a password).
http://linuxproblem.org/art_9.html