|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-03-22 07:24 UTC] vietnguyen at phununet dot com
Description:
------------
Failed using ssh2_auth_password to server version string: SSH-2.0-dropbear_0.51
Test script:
---------------
ini_set("default_socket_timeout", 60);
if(($connection = ssh2_connect("68.37.125.193", 22)))
{
$auth_methods = ssh2_auth_none($connection, 'user');
if (in_array('password', $auth_methods)) {
if(ssh2_auth_password($connection, "pi", "raspberry"))
{
echo "Tunnel OK\n";
}
else
{
die("failed!");
}
} else {
echo "success no password";
}
ssh2_exec($connection, 'exit');
} else {
echo "timeout";
}
Expected result:
----------------
The connection to the server was reset while the page was loading.
Actual result:
--------------
The connection to the server was reset while the page was loading.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ Using ssh2_auth_password for authentication to server 217.86.146.52 and webpage while loading... not return any result Test script: --------------- if(($connection = ssh2_connect("217.86.146.52", 22))) { if(ssh2_auth_password($connection, "guest", "guest")) { echo "Tunnel OK\n"; ssh2_exec($connection, 'exit'); unset($connection); exit; } else { echo "fail"; ssh2_exec($connection, 'exit'); unset($connection); } } else { echo "timeout"; } Expected result: ---------------- Webpage not while loading... and return login success or fail Actual result: -------------- The connection to the server was reset while the page was loading.