SSL & PHP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SSL & PHP

liderbug
My test as a cut'n paste right from the php web page.

   <?php

   $connection = ssh2_connect ('machine1.com', 22);
   ssh2_auth_password ($connection, 'me', 'mypw');

   $sftp = ssh2_sftp ($connection);

   $stream = fopen ("ssh2.sftp://$sftp/tmp/c1", 'r');
   ?>

I get back:
  *Fatal error*: Call to undefined function: ssh2_connect() in
*/var/www/html/tst.php* on line *3

I downloaded libssh2-0.11 (as I was told) config'ed, made, installed.
Still no ssh2_connect.  I'm trying to get my php scripts to do ssh
internally and not
calling expect scripts.
Tks.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: SSL & PHP

Ted Mittelstaedt

What OS?

Ted

>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]]On Behalf Of Chuck Lidderdale
>Sent: Monday, August 08, 2005 11:27 AM
>To: [hidden email]
>Subject: SSL & PHP
>
>
>My test as a cut'n paste right from the php web page.
>
>   <?php
>
>   $connection = ssh2_connect ('machine1.com', 22);
>   ssh2_auth_password ($connection, 'me', 'mypw');
>
>   $sftp = ssh2_sftp ($connection);
>
>   $stream = fopen ("ssh2.sftp://$sftp/tmp/c1", 'r');
>   ?>
>
>I get back:
>  *Fatal error*: Call to undefined function: ssh2_connect() in
>*/var/www/html/tst.php* on line *3
>
>I downloaded libssh2-0.11 (as I was told) config'ed, made, installed.
>Still no ssh2_connect.  I'm trying to get my php scripts to do ssh
>internally and not
>calling expect scripts.
>Tks.
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>User Support Mailing List                    [hidden email]
>Automated List Manager                           [hidden email]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: SSL & PHP

liderbug
Ted Mittelstaedt wrote:

>What OS?
>
>Ted
>  
>
Sorry bout that:
    RH Linux -
    PHP 5.0.4
    OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f


>  
>
>>-----Original Message-----
>>From: [hidden email]
>>[mailto:[hidden email]]On Behalf Of Chuck Lidderdale
>>Sent: Monday, August 08, 2005 11:27 AM
>>To: [hidden email]
>>Subject: SSL & PHP
>>
>>
>>My test as a cut'n paste right from the php web page.
>>
>>  <?php
>>
>>  $connection = ssh2_connect ('machine1.com', 22);
>>  ssh2_auth_password ($connection, 'me', 'mypw');
>>
>>  $sftp = ssh2_sftp ($connection);
>>
>>  $stream = fopen ("ssh2.sftp://$sftp/tmp/c1", 'r');
>>  ?>
>>
>>I get back:
>> *Fatal error*: Call to undefined function: ssh2_connect() in
>>*/var/www/html/tst.php* on line *3
>>
>>I downloaded libssh2-0.11 (as I was told) config'ed, made, installed.
>>Still no ssh2_connect.  I'm trying to get my php scripts to do ssh
>>internally and not
>>calling expect scripts.
>>Tks.
>>    
>>
>  
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: SSL & PHP

Ted Mittelstaedt
Doesen't that version of PHP no longer ship with PHP extensions?  I
think you have to add those in separately?  See the PHP site for more
details.

Ted

>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]]On Behalf Of Chuck Lidderdale
>Sent: Monday, August 08, 2005 3:08 PM
>To: [hidden email]
>Subject: Re: SSL & PHP
>
>
>Ted Mittelstaedt wrote:
>
>>What OS?
>>
>>Ted
>>  
>>
>Sorry bout that:
>    RH Linux -
>    PHP 5.0.4
>    OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
>
>
>>  
>>
>>>-----Original Message-----
>>>From: [hidden email]
>>>[mailto:[hidden email]]On Behalf Of Chuck Lidderdale
>>>Sent: Monday, August 08, 2005 11:27 AM
>>>To: [hidden email]
>>>Subject: SSL & PHP
>>>
>>>
>>>My test as a cut'n paste right from the php web page.
>>>
>>>  <?php
>>>
>>>  $connection = ssh2_connect ('machine1.com', 22);
>>>  ssh2_auth_password ($connection, 'me', 'mypw');
>>>
>>>  $sftp = ssh2_sftp ($connection);
>>>
>>>  $stream = fopen ("ssh2.sftp://$sftp/tmp/c1", 'r');
>>>  ?>
>>>
>>>I get back:
>>> *Fatal error*: Call to undefined function: ssh2_connect() in
>>>*/var/www/html/tst.php* on line *3
>>>
>>>I downloaded libssh2-0.11 (as I was told) config'ed, made, installed.
>>>Still no ssh2_connect.  I'm trying to get my php scripts to do ssh
>>>internally and not
>>>calling expect scripts.
>>>Tks.
>>>    
>>>
>>  
>>
>
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>User Support Mailing List                    [hidden email]
>Automated List Manager                           [hidden email]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]