PHP Classes

File: example.inc.php

Recommend this page to a friend!
  Classes of Christian Vigh   PHP SSH Connection Session   example.inc.php   Download  
File: example.inc.php
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 example.inc.php
Date: 1 year ago
Size: 671 bytes
 

Contents

Class file image Download
<?php
   
// 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 = "1.2.3.4" ; // 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' ;