mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-15 17:57:12 +00:00
SSH2: try logging in with none as an auth method first
This commit is contained in:
parent
fc0832ae99
commit
95d189ca72
@ -2132,6 +2132,15 @@ class Net_SSH2
|
|||||||
{
|
{
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
$this->auth[] = $args;
|
$this->auth[] = $args;
|
||||||
|
|
||||||
|
// try logging with 'none' as an authentication method first since that's what
|
||||||
|
// PuTTY does
|
||||||
|
if ($this->_login($username)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (count($args) == 1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return call_user_func_array(array(&$this, '_login'), $args);
|
return call_user_func_array(array(&$this, '_login'), $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user