1
0
mirror of https://github.com/rancher/os.git synced 2025-08-21 00:02:53 +00:00

Revert "Merge pull request #2070 from vincent99/master"

This commit is contained in:
Sven Dowideit 2017-09-13 22:07:55 +10:00 committed by GitHub
parent 37963a6d5a
commit 3d80a8d3dc

View File

@ -218,12 +218,12 @@ func modifySshdConfig() error {
sshdConfigString := string(sshdConfig) sshdConfigString := string(sshdConfig)
for _, item := range []string{ for _, item := range []string{
"UseDNS ", "UseDNS no",
"PermitRootLogin ", "PermitRootLogin no",
"ServerKeyBits ", "ServerKeyBits 2048",
"AllowGroups ", "AllowGroups docker",
} { } {
match, err := regexp.Match("(?m)^"+item, sshdConfig) match, err := regexp.Match("^"+item, sshdConfig)
if err != nil { if err != nil {
return err return err
} }