Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthNone uint8 = iota AuthPassword AuthPublicKey AuthKeyboardInteractive )
Variables ¶
This section is empty.
Functions ¶
func MarshalAuthorizedKey ¶
Types ¶
type ConnHandler ¶
type ConnHandler interface {
HandleConn(*Ctx)
}
type Ctx ¶
type Ctx struct {
//unsync readonly
Id uint64
Meta ssh.ConnMetadata
User string
Alt string
// contains filtered or unexported fields
}
type Midware ¶
type Midware struct {
PasswordCallback PasswordCbFn
PublicKeyCallback PublicKeyCbFn
// contains filtered or unexported fields
}
func NewSSHController ¶
func NewSSHController(private_keys []ssh.Signer, banner string, quotes []string, pwdcb PasswordCbFn, pubcb PublicKeyCbFn) *Midware
func (*Midware) AddHandler ¶
func (c *Midware) AddHandler(h ConnHandler, alt utils.GroupRegexp)
type PasswordCbFn ¶
Click to show internal directories.
Click to hide internal directories.