This commit is contained in:
simonzhangsz committed 2023-08-20 14:42:46 +08:00
1 parent dcd961ee86
commit e4fe101e4d
12 files changed
+119 -3

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ type YamlConfig struct {
MaxConnNum uint8 `yaml:"maxConnNum"`
Timeout uint16 `yaml:"timeout"`
Session string `yaml:"session"`
MmlHome string `yaml:"mmlHome"`
} `yaml:"sshd"`
Database struct {
+1
View File
@@ -28,6 +28,7 @@ sshd:
maxConnNum: 20
timeout: 1800
session: multiple
mmlHome: ./mmlhome
database:
type: mysql
+1
View File
@@ -207,6 +207,7 @@ func handleSSHShell(sshConn *ssh.ServerConn, channel ssh.Channel) {
omcMmlVar := &mmlp.MmlVar{
Version: "16.1.1",
Output: mmlp.DefaultFormatType,
MmlHome: conf.Sshd.MmlHome,
Limit: 50,
User: sshConn.User(),
SessionToken: fmt.Sprintf("%x", sshConn.SessionID()),