Starting ssh configure scripts

This commit is contained in:
Gregory Kurtzer
2020-12-15 21:29:28 -08:00
parent 1a3bcf2b20
commit 13fad167a4
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package ssh
import "github.com/spf13/cobra"
func CobraRunE(cmd *cobra.Command, args []string) error {
return nil
}

View 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
View File

@@ -0,0 +1,4 @@
Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel QUIET