Procedural File: SSH2.php
Source Location: /lib/3rdParty/phpseclib/Net/SSH2.php
Classes:
Net_SSH2
Pure-PHP implementation of SSHv2.
Page Details:
Pure-PHP implementation of SSHv2.
PHP versions 4 and 5 Here are some examples of how to use this library: <?php
include('Net/SSH2.php');
if (!$ssh->login('username', 'password')) {
exit('Login Failed');
}
echo $ssh->exec('ls -la');
?>
<?php
include('Crypt/RSA.php');
include('Net/SSH2.php');
//$key->setPassword('whatever');
if (!$ssh->login('username', $key)) {
exit('Login Failed');
}
echo $ssh->exec('ls -la');
?>
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_SSH2_LOG_COMPLEX [line 139]
NET_SSH2_LOG_SIMPLE [line 135]
|