Net_SSH1
[ class tree: Net_SSH1 ] [ index: Net_SSH1 ] [ all elements ]

Procedural File: SSH1.php

Source Location: /lib/3rdParty/phpseclib/Net/SSH1.php



Classes:

Net_SSH1
Pure-PHP implementation of SSHv1.


Page Details:

Pure-PHP implementation of SSHv1.

PHP versions 4 and 5

Here's a short example of how to use this library:

  1.  <?php
  2.     include('Net/SSH1.php');
  3.  
  4.     $ssh new Net_SSH1('www.domain.tld');
  5.     if (!$ssh->login('username''password')) {
  6.         exit('Login Failed');
  7.     }
  8.  
  9.     while (true{
  10.         echo $ssh->interactiveRead();
  11.  
  12.         $read array(STDIN);
  13.         $write $except NULL;
  14.         if (stream_select($read$write$except0)) {
  15.             $ssh->interactiveWrite(fread(STDIN1));
  16.         }
  17.     }
  18.  ?>

Here's another short example:

  1.  <?php
  2.     include('Net/SSH1.php');
  3.  
  4.     $ssh new Net_SSH1('www.domain.tld');
  5.     if (!$ssh->login('username''password')) {
  6.         exit('Login Failed');
  7.     }
  8.  
  9.     echo $ssh->exec('ls -la');
  10.  ?>

More information on the SSHv1 specification can be found by reading protocol-1.5.txt.

LICENSE: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA




Tags:

author:  Jim Wigginton <terrafrost@php.net>
version:  $Id: SSH1.php,v 1.1 2010/05/14 14:06:16 gruberroland Exp $
copyright:  MMVII Jim Wigginton
link:  http://phpseclib.sourceforge.net
license:  http://www.gnu.org/licenses/lgpl.txt


Includes:

require_once('Math/BigInteger.php') [line 77]
Include Math_BigInteger

Used to do RSA encryption.


require_once('Crypt/Random.php') [line 102]
Include Crypt_Random

require_once('Crypt/DES.php') [line 87]
Include Crypt_DES

require_once('Crypt/TripleDES.php') [line 92]
Include Crypt_TripleDES

require_once('Crypt/RC4.php') [line 97]
Include Crypt_RC4






NET_SSH1_AUTH_PASSWORD [line 205]

NET_SSH1_AUTH_PASSWORD = 3
password authentication

Authentication Methods

This is the only method that is supported by this library.




Tags:

see:  Net_SSH1::getSupportedAuthentications()
access:  public

[ Top ]



NET_SSH1_AUTH_RHOSTS [line 195]

NET_SSH1_AUTH_RHOSTS = 1
.rhosts or /etc/hosts.equiv

Authentication Methods




Tags:

see:  Net_SSH1::getSupportedAuthentications()
access:  public

[ Top ]



NET_SSH1_AUTH_RHOSTS_RSA [line 209]

NET_SSH1_AUTH_RHOSTS_RSA = 4
.rhosts with RSA host authentication

Authentication Methods




Tags:

see:  Net_SSH1::getSupportedAuthentications()
access:  public

[ Top ]



NET_SSH1_AUTH_RSA [line 199]

NET_SSH1_AUTH_RSA = 2
pure RSA authentication

Authentication Methods




Tags:

see:  Net_SSH1::getSupportedAuthentications()
access:  public

[ Top ]



NET_SSH1_CIPHER_3DES [line 153]

NET_SSH1_CIPHER_3DES = 3
Triple-DES in CBC mode

Encryption Methods

All implementations are required to support this




Tags:

see:  Net_SSH1::getSupportedCiphers()
access:  public

[ Top ]



NET_SSH1_CIPHER_BLOWFISH [line 183]

NET_SSH1_CIPHER_BLOWFISH = 6
Blowfish

Encryption Methods

Not supported nor is it defined in the official SSH1 specs. OpenSSH, however, defines it (see cipher.h) and uses it (see cipher.c)




Tags:

see:  Net_SSH1::getSupportedCiphers()
access:  public

[ Top ]



NET_SSH1_CIPHER_BROKEN_TSS [line 160]

NET_SSH1_CIPHER_BROKEN_TSS = 4
TRI's Simple Stream encryption CBC

Encryption Methods

Not supported nor is it defined in the official SSH1 specs. OpenSSH, however, does define it (see cipher.h), although it doesn't use it (see cipher.c)




Tags:

see:  Net_SSH1::getSupportedCiphers()
access:  public

[ Top ]



NET_SSH1_CIPHER_DES [line 147]

NET_SSH1_CIPHER_DES = 2
DES in CBC mode

Encryption Methods




Tags:

see:  Net_SSH1::getSupportedCiphers()
access:  public

[ Top ]



NET_SSH1_CIPHER_IDEA [line 143]

NET_SSH1_CIPHER_IDEA = 1
IDEA in CFB mode

Encryption Methods

Not supported.




Tags:

see:  Net_SSH1::getSupportedCiphers()
access:  public

[ Top ]



NET_SSH1_CIPHER_NONE [line 137]

NET_SSH1_CIPHER_NONE = 0
No encryption

Encryption Methods

Not supported.




Tags:

see:  Net_SSH1::getSupportedCiphers()
access:  public

[ Top ]



NET_SSH1_CIPHER_RC4 [line 176]

NET_SSH1_CIPHER_RC4 = 5
RC4

Encryption Methods

Not supported.




Tags:

see:  Net_SSH1::getSupportedCiphers()
access:  public

[ Top ]




Documentation generated on Fri, 25 Jun 2010 18:49:26 +0200 by phpDocumentor 1.4.1