$value
$value
Pure-PHP implementation of SSHv1.
PHP version 5
Here's a short example of how to use this library:
<?php
include 'vendor/autoload.php';
$ssh = new \phpseclib\Net\SSH1('www.domain.tld'); if (!$ssh->login('username', 'password')) { exit('Login Failed'); }
echo $ssh->exec('ls -la'); ?>
Here's another short example:
<?php
include 'vendor/autoload.php';
$ssh = new \phpseclib\Net\SSH1('www.domain.tld'); 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 {@link http://www.snailbook.com/docs/protocol-1.5.txt protocol-1.5.txt}.
SSH1 | Pure-PHP implementation of SSHv1. |