PHP Classes


Recommend this page to a friend!
  Classes of Christian Vigh   PHP SSH Connection Session   Download  
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: PHP SSH Connection Session
Run arbitrary length commands in a server with SSH
Author: By
Last change: Update of
Date: 1 year ago
Size: 671 bytes


Class file image Download
// This file contains authentication data used by the various example scripts
     // Variables used for connection - they must be set by you if you want this example to work
$host = "" ; // remote host name or ip address
$port = 22 ; // ssh port on the remote host
$user = 'myuser' ; // username used for the connection

     // Used by the example.password.php script for ssh authentication using password
$password = 'mypassword' ;

// Used by the examplekey.php script for ssh authentication using public and private key files
$private_key_file = 'private.ppk' ;
$public_key_file = 'public.ppk' ;