PHP Classes

SSH in PHP: SSH client implementation in pure PHP

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (15)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 12,500 All time: 90 This week: 560Down
Version License Categories
ssh_in_php 1.0.0GNU General Publi...Networking, PHP 5, Cryptography
Description 

Author

This class implements a SSH client to securely execute shell commands in a remote server using an encrypted communications channel.

This class is not based on any PHP extension specifically meant to implement the SSH protocol. It only requires the PHP extensions bcmath and mcrypt.

It can connect to a SSH server, authenticate with given user and password, execute given commands and retrieve the commands output returned by the server.

Currently the class only supports SSH protocol version 1.

Innovation Award
PHP Programming Innovation award nominee
August 2005
Number 3


Prize: One book of choice by O'Reilly
SSH is a protocol that allows the execution of shell commands in a remote machine using secure channel.

It is often used to access remote machines and execute operations via a private channel. It uses encryption to prevent illicit accesses to sensitive information that is exchanged between the client and the server.

Despite the complexity of the protocol, this class provides a pure PHP implementation of an SSH client. It does not require more than a PHP installation with mcrypt libraries, which are standard since PHP 3.

It enables the potential of applications that require executing automated operations in remote servers but require an high level of security.

Manuel Lemos
Picture of Martin Filip
Name: Martin Filip <contact>
Classes: 1 package by
Country: Czech Republic Czech Republic
Age: 39
All time rank: 1653 in Czech Republic Czech Republic
Week rank: 225 Down2 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file ssh_in_php.php Class Whole nasty code ;)
Accessible without login Plain text file ssh_in_php_ex.php Example Example of ssh in php class usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:12,500
This week:0
All time:90
This week:560Down
User Ratings User Comments (4)
 All time
Utility:89%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:76%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1099
 
The bad thing is if an error ocurrate this display my ssh roo...
11 years ago (Zsombor Szántó)
17%Star
Very useful thank you!
12 years ago (James Moore)
70%StarStarStarStar
this is very useful and thanks one who provided this
16 years ago (Jeyaseelan)
65%StarStarStarStar
It does not work.
16 years ago (David Winchell)
0%Star