From a608098c39639b33921729cb152a7c9ff03d89c0 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Wed, 13 Sep 2017 22:07:52 +1000 Subject: [PATCH] Revert "Only add SSH configuration lines that are not set" --- cmd/control/console_init.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/control/console_init.go b/cmd/control/console_init.go index eacf5cfb..2f73b4a3 100644 --- a/cmd/control/console_init.go +++ b/cmd/control/console_init.go @@ -216,12 +216,12 @@ func modifySshdConfig() error { sshdConfigString := string(sshdConfig) for _, item := range []string{ - "UseDNS ", - "PermitRootLogin ", - "ServerKeyBits ", - "AllowGroups ", + "UseDNS no", + "PermitRootLogin no", + "ServerKeyBits 2048", + "AllowGroups docker", } { - match, err := regexp.Match("(?m)^"+item, sshdConfig) + match, err := regexp.Match("^"+item, sshdConfig) if err != nil { return err }