auth

package
v0.0.0-...-d0e72d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

Authenticator handles SSH authentication

func NewAuthenticator

func NewAuthenticator(cfg *types.Config) (*Authenticator, error)

NewAuthenticator creates a new authenticator

func (*Authenticator) NoClientAuthCallback

func (a *Authenticator) NoClientAuthCallback() func(ssh.ConnMetadata) (*ssh.Permissions, error)

NoClientAuthCallback returns the no-auth callback This is enabled when neither password nor public key auth is configured

func (*Authenticator) PasswordCallback

func (a *Authenticator) PasswordCallback() func(ssh.ConnMetadata, []byte) (*ssh.Permissions, error)

PasswordCallback returns the password authentication callback

func (*Authenticator) PublicKeyCallback

func (a *Authenticator) PublicKeyCallback() func(ssh.ConnMetadata, ssh.PublicKey) (*ssh.Permissions, error)

PublicKeyCallback returns the public key authentication callback

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL