Interface ServerKeyLookup

  • All Known Implementing Classes:

    public interface ServerKeyLookup
    Offers operations to retrieve server keys from known_hosts files.
    • Method Detail

      • lookup

        List<PublicKey> lookup​(org.apache.sshd.client.session.ClientSession session,
                               SocketAddress remote)
        Retrieves all public keys known for a given remote.
        session - needed to determine the config files if specified in the ssh config
        remote - to find entries for
        a possibly empty list of entries found, including revoked ones