Documentation
¶
Index ¶
- Constants
- Variables
- func ChannelHandler(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewChannel, ...)
- func DBInit(db *gorm.DB) error
- func PasswordAuthHandler(db *gorm.DB, ...) ssh.PasswordHandler
- func PrivateKeyFromDB(db *gorm.DB, aesKey string) func(*ssh.Server) error
- func PublicKeyAuthHandler(db *gorm.DB, ...) ssh.PublicKeyHandler
- func ShellHandler(s ssh.Session, version, gitSha, gitTag string)
Constants ¶
View Source
const ACLHookTimeout = 2 * time.Second
ACLHookTimeout is timeout for external ACL hook execution
Variables ¶
View Source
var DefaultChannelHandler ssh.ChannelHandler = func(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewChannel, ctx ssh.Context) {}
Functions ¶
func ChannelHandler ¶
func ChannelHandler(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewChannel, ctx ssh.Context)
func PasswordAuthHandler ¶
func PublicKeyAuthHandler ¶
func ShellHandler ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.