mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
SSH2: make it so you can verify server public host key without logging on
This commit is contained in:
parent
c05cfe4c10
commit
5f56781261
@ -3625,6 +3625,13 @@ class Net_SSH2
|
||||
*/
|
||||
function getServerPublicHostKey()
|
||||
{
|
||||
if (!($this->bitmap & NET_SSH2_MASK_CONSTRUCTOR)) {
|
||||
$this->bitmap |= NET_SSH2_MASK_CONSTRUCTOR;
|
||||
if (!$this->_connect()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$signature = $this->signature;
|
||||
$server_public_host_key = $this->server_public_host_key;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user