diff --git a/helper/ssh/password.go b/helper/ssh/password.go index e5e2a3595..934bcd01f 100644 --- a/helper/ssh/password.go +++ b/helper/ssh/password.go @@ -18,7 +18,7 @@ func PasswordKeyboardInteractive(password string) ssh.KeyboardInteractiveChallen // Just send the password back for all questions answers := make([]string, len(questions)) - for i, _ := range answers { + for i := range answers { answers[i] = string(password) }