Skip to content

SSH.KnownHosts.Lookup

Andrew Lambert edited this page Nov 26, 2022 · 4 revisions

SSH.KnownHosts.Lookup

Method Signatures

 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

Parameters

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.

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.

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