LibSSH2

Started by erm3nda, April 09, 2015, 04:46:12 AM

Previous topic - Next topic

erm3nda

I have problems on install libSSH2.

I've follow some guides here and there and finally comes up to:

yum install gcc php-devel php-pear libssh2 libssh2-devel
pecl install -f ssh2
touch /etc/php.d/ssh2.ini
echo extension=ssh2.so > /etc/php.d/ssh2.ini


The pecl install stop was "failed with": Warning: opendir(/tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12//usr/local): failed to open dir: No such file or directory in /usr/lib64/php/PEAR/Builder.php on line 188

I watch at phpinfo() and the module seems loaded, but didn't recognize the ssh2_connect() comand (Fatal error: Call to undefined function ssh2_connect() in)

The directory /tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12 is not anymore so i cannot dig for files. I think that must be fixed on the install. If you see carefully, you will see that there's no space on the last paths.

Warning: opendir(/tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12//usr/local)

Actually i don't know how to fix that :(
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.


erm3nda

I've downloaded directly the autoinstallerd and worked like a charm.
Good job and thank you.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

brijendrasial

Good to know it worked for u :)

erm3nda

LibSSH2 is my root bypass.

I need to exec some bash files as root because im not able to do with the normal users. I know this is about how that users has been created (cwp) because those bash don't fail if i exec with a regular user created with useradd.

I've read also about phpseclib, a pure PHP ssh implementation.
Seems more cool than LibSSH2 due to dependencies, but, at the moment i will stay using my new SSH power :D
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Gogo

#5
How to enable ssh2 functions on th cwp ?

Extension is installed and loaded, but i can't call ssh2 functions from web, everything is fine but cwp block ssh2 function to be called from the web.

Why is blocked and how to enable it?

Igor S.

Hi,
Nothing to block any extension.
Check if the module is loaded and does not have any troubles.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

Gogo

Module is loaded and working, i can use it from terminal, but can't call ssh2 functions from the php. Function ssh2_connect doesn't exist. So thats mean something block ssh2 to be called from the php.

I'll try to recompile module again later.

Igor S.

Yes, try. As I said before the CWP does not have any blocks.
Check your php.ini files.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services