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.
2 parents 4b6ffe7 + a608098 commit 1b33955Copy full SHA for 1b33955
cmd/control/console_init.go
@@ -216,12 +216,12 @@ func modifySshdConfig() error {
216
sshdConfigString := string(sshdConfig)
217
218
for _, item := range []string{
219
- "UseDNS ",
220
- "PermitRootLogin ",
221
- "ServerKeyBits ",
222
- "AllowGroups ",
+ "UseDNS no",
+ "PermitRootLogin no",
+ "ServerKeyBits 2048",
+ "AllowGroups docker",
223
} {
224
- match, err := regexp.Match("(?m)^"+item, sshdConfig)
+ match, err := regexp.Match("^"+item, sshdConfig)
225
if err != nil {
226
return err
227
}
0 commit comments