0

I need your support for the next problematic , they let me develop a PHP page that connects by SSH to log 'm taking the library phpseclib and works well , the problem is now I need to connect to a computer from the first since no you can access it directly , do you know that command perform this action ? Please I need it soon.

$ssh = new Net_SSH2(x.x.x.x',22);
if (!$ssh->login('root', 'evergreen')) 
{
  exit('Login Failed');
}

 else
 {


 $ssh1= $ssh->exec('ssh oracle01:[email protected]');
 echo $ssh1;
}
neubert
  • 15,947
  • 24
  • 120
  • 212
Diana Pérez
  • 101
  • 8

0 Answers0