add: sshsvc support telnet server and local auth

This commit is contained in:
2024-09-07 16:48:34 +08:00
parent f323f5fcb9
commit f2696a9868
3 changed files with 167 additions and 31 deletions

View File

@@ -48,8 +48,25 @@ type YamlConfig struct {
Timeout uint16 `yaml:"timeout"`
Session string `yaml:"session"`
MmlHome string `yaml:"mmlHome"`
UserName string `yaml:"userName"`
Password string `yaml:"password"`
AuthType string `yaml:"authType"`
OMCUrl string `yaml:"omcUrl"`
} `yaml:"sshd"`
TelnetServer struct {
ListenAddr string `yaml:"listenAddr"`
ListenPort uint16 `yaml:"listenPort"`
MaxConnNum uint8 `yaml:"maxConnNum"`
Timeout uint16 `yaml:"timeout"`
Session string `yaml:"session"`
MmlHome string `yaml:"mmlHome"`
UserName string `yaml:"userName"`
Password string `yaml:"password"`
AuthType string `yaml:"authType"`
OMCUrl string `yaml:"omcUrl"`
} `yaml:"telnetServer"`
Database DbConfig `yaml:"database"`
OMC struct {