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: <?php
include('Net/SSH1.php');
if (!$ssh->login('username', 'password')) {
exit('Login Failed');
}
while (true) {
echo $ssh->interactiveRead();
$read = array(STDIN);
$write = $except = NULL;
$ssh->interactiveWrite(fread(STDIN, 1));
}
}
?>
Here's another short example: <?php
include('Net/SSH1.php');
if (!$ssh->login('username', 'password')) {
exit('Login Failed');
}
echo $ssh->exec('ls -la');
?>
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:
Includes:
NET_SSH1_AUTH_PASSWORD [line 205]
NET_SSH1_AUTH_RHOSTS [line 195]
NET_SSH1_AUTH_RHOSTS_RSA [line 209]
NET_SSH1_AUTH_RSA [line 199]
NET_SSH1_CIPHER_3DES [line 153]
NET_SSH1_CIPHER_BLOWFISH [line 183]
NET_SSH1_CIPHER_BROKEN_TSS [line 160]
NET_SSH1_CIPHER_DES [line 147]
NET_SSH1_CIPHER_IDEA [line 143]
NET_SSH1_CIPHER_NONE [line 137]
NET_SSH1_CIPHER_RC4 [line 176]
|