SSH.KnownHosts.Lookup - charonn0/RB-libssh2 GitHub Wiki
SSH.KnownHosts.Lookup
Function Lookup(Host As String, Port As Integer = 0, Key As MemoryBlock, Type As Integer) As Boolean
// Function Lookup(Session As SSH.Session) As Boolean ' deprecated| Name | Type | Comment |
|---|---|---|
Host |
String | The host to be looked up in the list. |
Port |
Integer | Optional. The non-default port associated with the host. |
Key |
MemoryBlock | The host's key. |
Type |
Integer | The format of the host+key. |
Lookup(Session As SSH.Session) Deprecated
| Name | Type | Comment |
|---|---|---|
Session |
SSH.Session | The session whose host+key is to be looked up in the list. |
Returns False if the host was not found or if the key doesn't match the one saved in the list.
Checks the specified host+key against the list of known hosts.