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');
}
echo $ssh->exec('ls -la');
?>
Here's another short example: <?php
include('Net/SSH1.php');
if (!$ssh->login('username', 'password')) {
exit('Login Failed');
}
echo $ssh->read('username@username:~$');
$ssh->write("ls -la\n");
echo $ssh->read('username@username:~$');
?>
More information on the SSHv1 specification can be found by reading protocol-1.5.txt. LICENSE: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Tags:
Includes:
NET_SSH1_AUTH_PASSWORD [line 180]
NET_SSH1_AUTH_RHOSTS [line 170]
NET_SSH1_AUTH_RHOSTS_RSA [line 184]
NET_SSH1_AUTH_RSA [line 174]
NET_SSH1_CIPHER_3DES [line 128]
NET_SSH1_CIPHER_BLOWFISH [line 158]
NET_SSH1_CIPHER_BROKEN_TSS [line 135]
NET_SSH1_CIPHER_DES [line 122]
NET_SSH1_CIPHER_IDEA [line 118]
NET_SSH1_CIPHER_NONE [line 112]
NET_SSH1_CIPHER_RC4 [line 151]
NET_SSH1_LOG_COMPLEX [line 234]
NET_SSH1_LOG_SIMPLE [line 230]
NET_SSH1_READ_REGEX [line 248]
NET_SSH1_READ_SIMPLE [line 244]
|