Documentation
¶
Overview ¶
Package sshserver provides the SSH server and TUI integration for centaurx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandHandler ¶
type CommandHandler interface {
Handle(ctx context.Context, userID schema.UserID, tabID schema.TabID, input string) (bool, error)
}
CommandHandler routes slash commands.
type Config ¶
type Config struct {
Addr string
HostKeyPath string
IdlePrompt string
KeyStorePath string
KeyDir string
}
Config defines SSH server settings.
type LoginAuthStore ¶
type LoginAuthStore interface {
HasLoginPubKey(userID schema.UserID, key ssh.PublicKey) (bool, error)
ValidateTOTP(username string, totpCode string) error
ChangePassword(username, currentPassword, totpCode, newPassword string) error
}
LoginAuthStore validates SSH login credentials and supports password changes.
Click to show internal directories.
Click to hide internal directories.