Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('Net/SSH2.php');
- define('NET_SSH2_LOGGING', NET_SSH2_LOG_COMPLEX);
- $host = "XXXX";
- $username = "XXXX";
- $password = "XXXX";
- $ssh = new Net_SSH2($host);
- if (!$ssh->login($username, $password)) {
- exit('Login Failed');
- }
- echo $ssh->exec('nproc');
- echo $ssh->exec('nproc');
- echo $ssh->getLog();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement