I downloaded phpseclib-0.3.10 from http://phpseclib.sourceforge.net/
My php version: PHP 5.2.4
OS: CentOS 6.6 release
When I run the following, I get a “Segmentation Error” in this line $ssh->login('username', 'password')
<?php set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib'); include('Net/SSH2.php'); $ssh=new Net_SSH2('servername'); if (!$ssh->login('username', 'password')) { exit('Login Failed'); } echo $ssh->exec('pwd'); ?>
I can not find the cause of this problem. Could you help me find the reason for this.
source share