Connection problem to remote server via ssh2_connect()

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

Moderators: macek, egami, gesf

abdullahallmehedi
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Mar 25, 2012 3:07 am

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.

Return to “PEAR and PECL”

Who is online

Users browsing this forum: No registered users and 1 guest