Starting ssh configure scripts
This commit is contained in:
8
internal/app/wwctl/configure/ssh/main.go
Normal file
8
internal/app/wwctl/configure/ssh/main.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package ssh
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
23
internal/app/wwctl/configure/ssh/root.go
Normal file
23
internal/app/wwctl/configure/ssh/root.go
Normal file
@@ -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
|
||||
}
|
||||
4
ssh_config
Normal file
4
ssh_config
Normal file
@@ -0,0 +1,4 @@
|
||||
Host *
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile /dev/null
|
||||
LogLevel QUIET
|
||||
Reference in New Issue
Block a user