<?php
include('Net/SSH2.php');
$ssh = new Net_SSH2('10.106.240.212');
$ssh->login('Administrator', 'Nbv12345') or die("Login failed");
echo $ssh->exec('powershell.exe');
echo connected;
?>
I am trying to execute 'powershell.exe' using PHP SSH2. The script timeouts after 30 seconds always.
I am able to SSH through a normal SSH client
While I am able to execute simple commands like
dir
How can I enter powershell and execute a command ? Thanks in advance!