mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
SCP: Update example
This commit is contained in:
parent
9555ddc212
commit
83ebb08f0a
@ -14,14 +14,13 @@
|
|||||||
* include('Net/SCP.php');
|
* include('Net/SCP.php');
|
||||||
* include('Net/SSH2.php');
|
* include('Net/SSH2.php');
|
||||||
*
|
*
|
||||||
* $ssh = new Net_SSH2('127.0.0.1', 4022);
|
* $ssh = new Net_SSH2('www.domain.tld');
|
||||||
* if (!$ssh->login('ubuntu', 'ubuntu')) {
|
* if (!$ssh->login('username', 'password')) {
|
||||||
* exit('bad login');
|
* exit('bad login');
|
||||||
* }
|
* }
|
||||||
|
|
||||||
* $scp = new Net_SCP($ssh);
|
* $scp = new Net_SCP($ssh);
|
||||||
* $scp->put('abcd', str_repeat('x', 1024*1024));
|
* $scp->put('abcd', str_repeat('x', 1024*1024));
|
||||||
* $scp->put('xxxx', 'zzzz');
|
|
||||||
* ?>
|
* ?>
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user