Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <?php
  2.  
  3. $SSH_HOST = '127.0.0.1';
  4. $SSH_PORT = '22';
  5. $SSH_USER = 'MW2';
  6. $SSH_PASS = 'BRO';
  7.  
  8. $SSH_CON = ssh2_connect($SSH_HOST, $SSH_PORT, $methods, $callbacks);
  9. if (!$SSH_CON) die('Connection failed irl sorry bro');
  10.  
  11. ssh2_auth_password($SSH_CON, $SSH_USER, $SSH_PASS);
  12. ssh2_exec($SSH_CON, './restart.sh');
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement