-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.KnownHosts.Lookup
Andrew Lambert edited this page Jul 24, 2021
·
4 revisions
SSH.KnownHosts.Lookup
Function Lookup(Session As SSH.Session) As Boolean
Function Lookup(Host As String, Port As Integer = 0, Key As MemoryBlock, Type As Integer) As Boolean
Name | Type | Comment |
---|---|---|
Session |
SSH.Session | The session whose host+key is to be looked up in the list. |
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. |
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.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.