Skip to content

SSH.KnownHosts.Lookup

Andrew Lambert edited this page Jul 24, 2021 · 4 revisions

SSH.KnownHosts.Lookup

Method Signatures

 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

Parameters

Lookup(Session As SSH.Session)

Name Type Comment
Session SSH.Session The session whose host+key is to be looked up in the list.

Lookup(String, Integer, MemoryBlock, Integer)

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.

Return value

Returns False if the host was not found or if the key doesn't match the one saved in the list.

Remarks

Checks the specified host+key against the list of known hosts.

Clone this wiki locally