diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/ssh.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/ssh.kt index e1f2203..6f05497 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/ssh.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/ssh.kt @@ -25,7 +25,7 @@ fun Prov.isSshdHardeningConfigExisting(): Boolean { } fun Prov.configureSsh() = task { - if(isSshdConfigExisting() && isSshConfigExisting() && isSshdHardeningConfigExisting() && isPackageInstalled(packageNameSshServer)) { + if(isSshdConfigExisting() && isSshConfigExisting() && !isSshdHardeningConfigExisting() && isPackageInstalled(packageNameSshServer)) { createFileFromResource( pathSshConfig, "ssh_config",