We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba7898 commit 0390030Copy full SHA for 0390030
modules/setting/setting.go
@@ -108,6 +108,7 @@ var (
108
StartBuiltinServer: false,
109
Domain: "",
110
Port: 22,
111
+ ServerCiphers: []string{"aes128-ctr", "aes192-ctr", "aes256-ctr", "[email protected]", "arcfour256", "arcfour128"},
112
KeygenPath: "ssh-keygen",
113
}
114
@@ -709,7 +710,10 @@ func NewContext() {
709
710
SSH.Domain = Domain
711
712
SSH.RootPath = path.Join(homeDir, ".ssh")
- SSH.ServerCiphers = sec.Key("SSH_SERVER_CIPHERS").Strings(",")
713
+ serverCiphers := sec.Key("SSH_SERVER_CIPHERS").Strings(",")
714
+ if len(serverCiphers) > 0 {
715
+ SSH.ServerCiphers = serverCiphers
716
+ }
717
SSH.KeyTestPath = os.TempDir()
718
if err = Cfg.Section("server").MapTo(&SSH); err != nil {
719
log.Fatal(4, "Failed to map SSH settings: %v", err)
0 commit comments