diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index f323ef00..c045db25 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -24,9 +24,7 @@ * setPassword('whatever'); - * $key->load(file_get_contents('privatekey')); + * $key = \phpseclib\Crypt\PublicKeyLoader::load('...', '(optional) password'); * * $ssh = new \phpseclib\Net\SSH2('www.domain.tld'); * if (!$ssh->login('username', $key)) {