Class AuthPublickey

  • All Implemented Interfaces:
    SSHPacketHandler, AuthMethod

    public class AuthPublickey
    extends KeyedAuthMethod
    Implements the "publickey" SSH authentication method.

    Requesting authentication with this method first sends a "feeler" request with just the public key, and if the server responds with SSH_MSG_USERAUTH_PK_OK indicating that the key is acceptable, it proceeds to send a request signed with the private key. Therefore, private keys are not requested from the associated KeyProvider unless needed.