Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. include('Net/SSH2.php');
  3. define('NET_SSH2_LOGGING', NET_SSH2_LOG_COMPLEX);
  4. $host = "XXXX";
  5. $username = "XXXX";
  6. $password = "XXXX";
  7. $ssh = new Net_SSH2($host);
  8. if (!$ssh->login($username, $password)) {
  9. exit('Login Failed');
  10. }
  11. echo $ssh->exec('nproc');
  12. echo $ssh->exec('nproc');
  13. echo $ssh->getLog();
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement