Thanks a lot for your advise. In fact, I thought about that as well, but I
do not know how to switch the user from apache to a real user when I send a
request through Web browser. I even tried to use "ssh_rsa" method instead of
password authentication. But I got the same error. Command line fine, b
It may be a permission problem.
When you try "php index.php", then its 'your-username' is trying to SSH. But
when you run the script through webserver, the user 'apache' is trying to
SSH.
Can you just check this once.
Thanks,
Vikash Kumar
--
http://vika.sh
On Thu, Mar 25, 2010 at 2:28 AM, Le-s
I can successfully create a ssh connection within a index.php file by using
ssh2_connect(). But when I try to create a web service by using the same
code, I got "Unable to connect to a.b.c.d (IP address) on port 22" error. In
other words, if I run the command "php index.php" under shell prompt, it
3 matches
Mail list logo