Bug #54916 [NEW]: ssh2_auth_password fails while connecting to free bsd
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
Thread (2 messages)
- sweekar07 at yahoo dot com