if (!function_exists("ssh2_connect")) die("Error: No SSH2"); if(!($con = ssh2_connect(103.114.104.241, 22))){ echo "Error"; } else { if(!ssh2_auth_password($con, root, password)) { echo "Error: Bad credentials."; } else { if (!($stream = ssh2_exec($con, $command ))) { echo "Error: Execution failed";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)