Help us shape the future of Go! Take the 2026 Go Developer Survey

sshd

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2025 License: MIT, MIT Imports: 19 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL