#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    7
    Rep Power
    0

    Php_ssh2 connection in windows using php


    Helpers,

    My PHP version 5.4.7, I'm not able to connect to linux box through php_ssh2 connect.

    Steps have followed :

    1.)Tried to download php_ssh2 dll file from PECL and pasted on ext folder


    2.) Post that i could see ssh2 is enalbed on phpinfo()
    SSH2 support - enabled

    3.) But still while executing the below php file i'm getting JIT complier error.
    php $conn = ssh2_connect('My Linux box Server IP', 22); ssh2_auth_password($conn, 'username', 'password');
    echo 'connected';


    Request someone to help on this case.
  2. #2
  3. Wiser? Not exactly.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,953
    Rep Power
    4033
    Originally Posted by sandyforum
    ... getting JIT complier error.
    So, what's the error message you are getting?



    edit: cross-posted: http://forums.phpfreaks.com/forum/23...s-suggestions/
    Last edited by kicken; September 4th, 2013 at 09:55 PM.
    Recycle your old CD's, don't just trash them



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    7
    Rep Power
    0
    JIT compiler error.i couldn't attach scrrenshot pls hellp
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0
    Would phpseclib, a pure PHP SSH2 implementation, work for you?

    Example:

    Code:
    <?php
    include('Net/SSH2.php');
    
    $ssh = new Net_SSH2('www.domain.tld');
    if (!$ssh->login('username', 'password')) {
        exit('Login Failed');
    }
    
    echo $ssh->exec('pwd');
    echo $ssh->exec('ls -la');
    ?>
    Link: phpseclib.sourceforge.net
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    7
    Rep Power
    0
    here i couldn't achieve it , can u please brief it Net/SSH2.php or share ssh2.php.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0
    Check out phpseclib.sourceforge.net. You can download the zip there.

IMN logo majestic logo threadwatch logo seochat tools logo