php ssh2_tunnel Unable to request a channel from remote host

Viewed 961

That's my code

$connection = ssh2_connect("88.76.192.38", 22);
if(ssh2_auth_password($connection, "admin", "1234"))
{
    if ($tunnel = ssh2_tunnel($connection, '85.90.214.153', 80)) {
        echo "OK";
    }else{
        echo "Tunnel creation failed.\n";
    }
}
else
{
    echo "failed!";
}
die();

I have tried different hosts and ports for function ssh2_tunnel, now there passed my public IP. But every time I get an error:

Warning: ssh2_tunnel(): Unable to request a channel from remote host

0 Answers
Related