Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func (*Config) GetUserRemote ¶
type ErrorNotAllowed ¶
func (ErrorNotAllowed) Error ¶
func (e ErrorNotAllowed) Error() string
type User ¶
type User interface { Username() string // Authentication RemoteAllowed(net.Addr) bool // User can connect from remote CheckPassword(string) bool // User can authentication with given password CheckChallenge(ssh.KeyboardInteractiveChallenge) bool // User can authentication with given challenge CheckPublicKey(ssh.PublicKey) bool // User can authentication with given public key }
Click to show internal directories.
Click to hide internal directories.