PHP Classes

File: example

Recommend this page to a friend!
  Classes of Lukas Mestan   Connect to SSH   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: send shell command to remote ssh server
Class: Connect to SSH
Execute programs in remote computers using SSH
Author: By
Last change:
Date: 15 years ago
Size: 254 bytes
 

Contents

Class file image Download
<?php

// EXAMPLE:
 
try{
  
$ssh=new SSH2_Connect;
 } catch (
Exception $e) echo $e->getMessage()

// some php scripts

// execute ssh command
 
try{
  
$ssh->SSH_Start_Script("ls -a", true);
 } catch (
Exception $e) echo $e->getMessage()

?>