Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey is an authenticator that authenticates the user based on the `.ssh/authorized_keys` in the user's $HOME
func (*PublicKey) AuthenticateUser ¶
func (o *PublicKey) AuthenticateUser(ctx session.ConnMetadata, pubkey gossh.PublicKey) (authentication.User, bool, error)
AuthenticateUser loads the $HOME`/.ssh/authorized_keys` of the user to look for a matching key. The user is denied if none of the list of keys in `authorized_keys` match the submitted keys.
func (PublicKey) CaddyModule ¶
func (PublicKey) CaddyModule() caddy.ModuleInfo
This method indicates that the type is a Caddy module. The returned ModuleInfo must have both a name and a constructor function. This method must not have any side-effects.
Click to show internal directories.
Click to hide internal directories.