From: Operating system: free bsd PHP version: 5.2.17 Package: Session related Bug Type: Bug Bug description:ssh2_auth_password fails while connecting to free bsd
Description: ------------ --- >From manual page: http://www.php.net/function.ssh2-auth-password#Description --- if(!ssh2_auth_password($con, 'root', 'qwerty')) { echo "fail: unable to authenticate\n"; } else { ssh2_auth_password always fails when iconnect to a free bsd machine works fine when i connect to other linux machines Test script: --------------- This is a simple php script witch I use to connect to FreeBSD <?php if(!($con = ssh2_connect("192.168.1.110", "22"))){ echo "fail: unable to establish connection\n"; } else { if(!ssh2_auth_password($con, 'root', 'qwerty')) { echo "fail: unable to authenticate\n"; } else { if(!($stream = ssh2_exec($con, "uptime" )) ){ echo "fail: unable to execute command\n"; } // collect returning data from command else{ stream_set_blocking( $stream, true ); while( $buf = fread($stream,4096) ){ echo "$buf"; } fclose($stream); } } } ?> -- Edit bug report at http://bugs.php.net/bug.php?id=54916&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54916&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54916&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54916&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54916&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54916&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54916&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54916&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54916&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54916&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54916&r=support Expected behavior: http://bugs.php.net/fix.php?id=54916&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54916&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54916&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54916&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54916&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54916&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54916&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54916&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54916&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54916&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54916&r=mysqlcfg
