J
J
joger2012-09-25 12:17:55
PHP
joger, 2012-09-25 12:17:55

ssh2_connect not working through webserver

I can’t find an error in 2 lines :)

given:
Windows 7, XAMPP
ssh2 is connected, we have the corresponding lines in phpinfo ()

$SSH_CONNECTION= ssh2_connect($server); echo ssh2_auth_password($SSH_CONNECTION, $user, $pwd);

I run it through the console, I get “1” I
run it through the browser, I get “the server terminated the connection”. a pair of echo say that things do not go beyond 1. lines.

Where can you find a buried dog?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2012-09-27
@BuriK666

Look at the apache logs, this happens when apache (its worker) stupidly dies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question