Documentation
¶
Index ¶
- type Authenticator
- func (a *Authenticator) NoClientAuthCallback() func(ssh.ConnMetadata) (*ssh.Permissions, error)
- func (a *Authenticator) PasswordCallback() func(ssh.ConnMetadata, []byte) (*ssh.Permissions, error)
- func (a *Authenticator) PublicKeyCallback() func(ssh.ConnMetadata, ssh.PublicKey) (*ssh.Permissions, error)
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
Click to show internal directories.
Click to hide internal directories.