diff --git a/CHANGELOG.md b/CHANGELOG.md index 2101db5eb..bea5495a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix installation docs to use github.com/warewulf instead of github.com/hpcng. #1219 - Fix the issue that warewulf.conf parse does not support CIDR format. #1130 - Reduce the number of times syncuser walks the container file system. #1209 +- Create ssh key also when calling `wwctl configure --all` #1250 ### Security diff --git a/internal/app/wwctl/configure/main.go b/internal/app/wwctl/configure/main.go index c663dc719..fad8c4af2 100644 --- a/internal/app/wwctl/configure/main.go +++ b/internal/app/wwctl/configure/main.go @@ -4,6 +4,7 @@ import ( "os" "github.com/spf13/cobra" + warewulfconf "github.com/warewulf/warewulf/internal/pkg/config" "github.com/warewulf/warewulf/internal/pkg/configure" "github.com/warewulf/warewulf/internal/pkg/wwlog" ) @@ -23,7 +24,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error { os.Exit(1) } - err = configure.SSH() + err = configure.SSH(warewulfconf.Get().SSH.KeyTypes...) if err != nil { wwlog.Error("%s", err) os.Exit(1)