type authResult …
const authFailure …
const authPartialSuccess …
const authSuccess …
func (c *connection) clientAuthenticate(config *ClientConfig) error { … }
func contains(list []string, e string) bool { … }
type AuthMethod …
type noneAuth …
func (n *noneAuth) auth(session []byte, user string, c packetConn, rand io.Reader, _ map[string][]byte) (authResult, []string, error) { … }
func (n *noneAuth) method() string { … }
type passwordCallback …
func (cb passwordCallback) auth(session []byte, user string, c packetConn, rand io.Reader, _ map[string][]byte) (authResult, []string, error) { … }
func (cb passwordCallback) method() string { … }
func Password(secret string) AuthMethod { … }
func PasswordCallback(prompt func() (secret string, err error)) AuthMethod { … }
type publickeyAuthMsg …
type publicKeyCallback …
func (cb publicKeyCallback) method() string { … }
func pickSignatureAlgorithm(signer Signer, extensions map[string][]byte) (MultiAlgorithmSigner, string, error) { … }
func (cb publicKeyCallback) auth(session []byte, user string, c packetConn, rand io.Reader, extensions map[string][]byte) (authResult, []string, error) { … }
func validateKey(key PublicKey, algo string, user string, c packetConn) (bool, error) { … }
func confirmKeyAck(key PublicKey, c packetConn) (bool, error) { … }
func PublicKeys(signers ...Signer) AuthMethod { … }
func PublicKeysCallback(getSigners func() (signers []Signer, err error)) AuthMethod { … }
func handleAuthResponse(c packetConn) (authResult, []string, error) { … }
func handleBannerResponse(c packetConn, packet []byte) error { … }
type KeyboardInteractiveChallenge …
func KeyboardInteractive(challenge KeyboardInteractiveChallenge) AuthMethod { … }
func (cb KeyboardInteractiveChallenge) method() string { … }
func (cb KeyboardInteractiveChallenge) auth(session []byte, user string, c packetConn, rand io.Reader, _ map[string][]byte) (authResult, []string, error) { … }
type retryableAuthMethod …
func (r *retryableAuthMethod) auth(session []byte, user string, c packetConn, rand io.Reader, extensions map[string][]byte) (ok authResult, methods []string, err error) { … }
func (r *retryableAuthMethod) method() string { … }
func RetryableAuthMethod(auth AuthMethod, maxTries int) AuthMethod { … }
func GSSAPIWithMICAuthMethod(gssAPIClient GSSAPIClient, target string) AuthMethod { … }
type gssAPIWithMICCallback …
func (g *gssAPIWithMICCallback) auth(session []byte, user string, c packetConn, rand io.Reader, _ map[string][]byte) (authResult, []string, error) { … }
func (g *gssAPIWithMICCallback) method() string { … }