diff --git a/cli/cmd/ssh.go b/cli/cmd/ssh.go index f50927c..76b1be9 100644 --- a/cli/cmd/ssh.go +++ b/cli/cmd/ssh.go @@ -98,6 +98,11 @@ var importSSHCmd = &cobra.Command{ Short: "Imports an SSH key into your vault", Long: `Imports an SSH key into your vault.`, Run: func(cmd *cobra.Command, args []string) { + if len(args) == 0 { + fmt.Println("Error: No filename for SSH key specified") + return + } + filename := args[0] fmt.Println("Importing SSH key from " + filename)