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
<?php
$con = ssh2_connect('crm.idea.com.bd','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.
abdullahallmehedi
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 0 guests

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

cron