SSH2.php
Pure-PHP implementation of SSHv2.
PHP version 5
Here are some examples of how to use this library:
$key = \phpseclib3\Crypt\PublicKeyLoader::load('...', '(optional) password');
$ssh = new \phpseclib3\Net\SSH2('www.domain.tld');
if (!$ssh->login('username', $key)) {
exit('Login Failed');
}
echo $ssh->read('username@username:~$');
$ssh->write("ls -la\n");
echo $ssh->read('username@username:~$');
?>
Tags
Table of Contents
Classes
- SSH2
- Pure-PHP implementation of SSHv2.