SSH2::KnownHosts
Inherits Enumerable / Reference / Object
Manages a session's collection of known hosts, mirroring an OpenSSH
known_hosts file: add and check host keys, and read/write the file.
Constructors
new(session : Session)
SourceInstance methods
add(host, salt, key, comment, typemask : LibSSH2::TypeMask)
Add host with its key and typemask to the collection. salt is used
for hashed hostnames (empty for a plain name). Returns the stored entry.
check(host, port, key, typemask : LibSSH2::TypeMask)
Check host/port and key against the collection. Returns a
LibSSH2::KnownHostCheck (MATCH, MISMATCH, NOTFOUND or FAILURE).
finalize
Sourceto_unsafe
Source