Answer the question
In order to leave comments, you need to log in
How to reset php ssh2_connect function after 30 seconds delay?
There is a script:
$connection = ssh2_connect("$value[ip]",22);
if (ssh2_auth_password($connection, "$value[login]", "$value[password]")) {
echo "Authentication Successful!\n<br>";
} else {
echo "Authentication Failed...\n<br>";
Answer the question
In order to leave comments, you need to log in
It is ssh2_connect that does not know how to timeout.
Use what you can. For example, phpseclib .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question