From 13fad167a419cdac98e2a23295d556a529a52fb2 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Tue, 15 Dec 2020 21:29:28 -0800 Subject: [PATCH] Starting ssh configure scripts --- internal/app/wwctl/configure/ssh/main.go | 8 ++++++++ internal/app/wwctl/configure/ssh/root.go | 23 +++++++++++++++++++++++ ssh_config | 4 ++++ 3 files changed, 35 insertions(+) create mode 100644 internal/app/wwctl/configure/ssh/main.go create mode 100644 internal/app/wwctl/configure/ssh/root.go create mode 100644 ssh_config diff --git a/internal/app/wwctl/configure/ssh/main.go b/internal/app/wwctl/configure/ssh/main.go new file mode 100644 index 00000000..c4bf59c3 --- /dev/null +++ b/internal/app/wwctl/configure/ssh/main.go @@ -0,0 +1,8 @@ +package ssh + +import "github.com/spf13/cobra" + +func CobraRunE(cmd *cobra.Command, args []string) error { + + return nil +} diff --git a/internal/app/wwctl/configure/ssh/root.go b/internal/app/wwctl/configure/ssh/root.go new file mode 100644 index 00000000..69ef0f9e --- /dev/null +++ b/internal/app/wwctl/configure/ssh/root.go @@ -0,0 +1,23 @@ +package ssh + +import "github.com/spf13/cobra" + +var ( + baseCmd = &cobra.Command{ + Use: "ssh", + Short: "SSH configuration", + Long: "SSH Config", + RunE: CobraRunE, + } + SetShow bool +) + +func init() { +// baseCmd.PersistentFlags().BoolVarP(&SetShow, "show", "s", false, "Show configuration (don't update)") + +} + +// GetRootCommand returns the root cobra.Command for the application. +func GetCommand() *cobra.Command { + return baseCmd +} diff --git a/ssh_config b/ssh_config new file mode 100644 index 00000000..377c91f4 --- /dev/null +++ b/ssh_config @@ -0,0 +1,4 @@ +Host * + StrictHostKeyChecking no + UserKnownHostsFile /dev/null + LogLevel QUIET