From 42cd5bda68bbd431daceffba90d97a9ab9fe7b49 Mon Sep 17 00:00:00 2001 From: Scott Hawkins Date: Fri, 21 Apr 2023 11:48:06 -0400 Subject: [PATCH] fix: ssh keyscan hint output (#1490) --- cmd/aws/create.go | 4 ++-- cmd/civo/create.go | 4 ++-- cmd/digitalocean/create.go | 4 ++-- cmd/k3d/create.go | 4 ++-- cmd/vultr/create.go | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/aws/create.go b/cmd/aws/create.go index 3f3a1edf4..03d893c1c 100644 --- a/cmd/aws/create.go +++ b/cmd/aws/create.go @@ -58,14 +58,14 @@ func createAws(cmd *cobra.Command, args []string) error { case "github": key, err := internalssh.GetHostKey("github.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H github.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan github.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "github.com", key.Type()) } case "gitlab": key, err := internalssh.GetHostKey("gitlab.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan gitlab.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "gitlab.com", key.Type()) } diff --git a/cmd/civo/create.go b/cmd/civo/create.go index d945ec80f..1eae0052a 100644 --- a/cmd/civo/create.go +++ b/cmd/civo/create.go @@ -52,14 +52,14 @@ func createCivo(cmd *cobra.Command, args []string) error { case "github": key, err := internalssh.GetHostKey("github.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H github.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan github.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "github.com", key.Type()) } case "gitlab": key, err := internalssh.GetHostKey("gitlab.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan gitlab.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "gitlab.com", key.Type()) } diff --git a/cmd/digitalocean/create.go b/cmd/digitalocean/create.go index 83de84dd0..119ea639c 100644 --- a/cmd/digitalocean/create.go +++ b/cmd/digitalocean/create.go @@ -52,14 +52,14 @@ func createDigitalocean(cmd *cobra.Command, args []string) error { case "github": key, err := internalssh.GetHostKey("github.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H github.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan github.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "github.com", key.Type()) } case "gitlab": key, err := internalssh.GetHostKey("gitlab.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan gitlab.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "gitlab.com", key.Type()) } diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index b3df31eea..2192f036d 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -61,14 +61,14 @@ func runK3d(cmd *cobra.Command, args []string) error { case "github": key, err := internalssh.GetHostKey("github.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H github.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan github.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "github.com", key.Type()) } case "gitlab": key, err := internalssh.GetHostKey("gitlab.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan gitlab.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "gitlab.com", key.Type()) } diff --git a/cmd/vultr/create.go b/cmd/vultr/create.go index e1e2a742b..f6b747afc 100644 --- a/cmd/vultr/create.go +++ b/cmd/vultr/create.go @@ -52,14 +52,14 @@ func createVultr(cmd *cobra.Command, args []string) error { case "github": key, err := internalssh.GetHostKey("github.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H github.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan github.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "github.com", key.Type()) } case "gitlab": key, err := internalssh.GetHostKey("gitlab.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts` to remedy") + return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan gitlab.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "gitlab.com", key.Type()) }