Board index   FAQ   Search  
Register  Login
Board index PHP PEAR and PECL

Connection problem to remote server via ssh2_connect()

Do you have questions regarding Pecl or Pear? ask here!

Moderators: macek, egami, gesf

Connection problem to remote server via ssh2_connect()

Postby abdullahallmehedi » Sun Mar 25, 2012 3:21 am

Here is my code:

Code: Select all
$con = ssh2_connect('','4321');
ssh2_auth_password($con, 'username', 'password');
$response = ssh2_exec($con, 'pwd');
echo $response;


I can connect to that server using that username, password and port address. But when I load this script it don't work. It shows loading and loading continues. No error message is given.

N: B: Please help me. I am a newbie.
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Mar 25, 2012 3:07 am

Return to PEAR and PECL

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.