Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSshServer ¶
func NewSshServer(conf *SshDConf) *sshServer
NewSshServer builds an SshServer object
Types ¶
type SshDConf ¶
type SshDConf struct {
Key string `yaml:"server_key"`
AuthorizedKeysURI []string `yaml:"authorized_keys"`
AuthorizedPassword string `yaml:"authorized_password"`
// The address the sshd server will listen too
ListenAddress string `yaml:"listen_address"`
// if true the exec,shell requests will be ignored
DisableShell bool `yaml:"disable_shell"`
// if true no banner will be displayed while interacting
// with the sshd server
DisableBanner bool `yaml:"disable_banner"`
// if true all auth mechanism will be disabled
// use with caution
DisableAuth bool `yaml:"disable_auth"`
// If true the sftp subsystem will be disabled and no file transfer
// will be allowed
DisableSftpSubsystem bool `yaml:"disable_sftp_subsystem"`
// if disabled, forward and reverse tunnelling will be not allowed
// on this server
DisableTunnelling bool `yaml:"disable_tunnelling"`
// shell executable. Leave empty for default behaviour
ShellExecutable string `yaml:"shell_executable"`
}
SshDConf holds the sshd configuration
Click to show internal directories.
Click to hide internal directories.