Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerConfig ¶
type ServerConfig struct {
AuthorizedKeysFile string `regex:".*"`
Port string `regex:"0*([0-5]?\\d{0,4}|6([0-4]\\d{3}|5([0-4]\\d{2}|5([0-2]\\d|3[0-5]))))"`
PasswordAuthentication string `regex:"(yes|no)"`
PubkeyAuthentication string `regex:"(yes|no)"`
HostKey string `regex:".*"`
MaxAuthTries string `regex:"[1-9]\\d*"`
}
ServerConfig is a struct containing configuration for the server.
func Create ¶
func Create() *ServerConfig
Create creates a new ServerConfig with the default values.
Click to show internal directories.
Click to hide internal directories.