From 50095283ef8491609b6385672069793debf89b7a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 2 Jul 2013 22:02:58 -0700 Subject: [PATCH] builder/virtualbox, builder/vmware: keyboard-interactive [GH-121] --- CHANGELOG.md | 2 ++ builder/virtualbox/step_wait_for_ssh.go | 2 ++ builder/vmware/step_wait_for_ssh.go | 2 ++ 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dba61759c..b167429d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ IMPROVEMENTS: * core: Template syntax errors now show line and character number. [GH-56] * amazon-ebs: Access key and secret access key default to environmental variables. [GH-40] +* virtualbox: Send password for keyboard-interactive auth [GH-121] +* vmware: Send password for keyboard-interactive auth [GH-121] BUG FIXES: diff --git a/builder/virtualbox/step_wait_for_ssh.go b/builder/virtualbox/step_wait_for_ssh.go index 4ce7c97ff..ac039e801 100644 --- a/builder/virtualbox/step_wait_for_ssh.go +++ b/builder/virtualbox/step_wait_for_ssh.go @@ -112,6 +112,8 @@ func (s *stepWaitForSSH) waitForSSH(state map[string]interface{}) (packer.Commun User: config.SSHUser, Auth: []gossh.ClientAuth{ gossh.ClientAuthPassword(ssh.Password(config.SSHPassword)), + gossh.ClientAuthKeyboardInteractive( + ssh.PasswordKeyboardInteractive(config.SSHPassword)), }, } diff --git a/builder/vmware/step_wait_for_ssh.go b/builder/vmware/step_wait_for_ssh.go index b0551ccf1..03457ad9f 100644 --- a/builder/vmware/step_wait_for_ssh.go +++ b/builder/vmware/step_wait_for_ssh.go @@ -157,6 +157,8 @@ func (s *stepWaitForSSH) waitForSSH(state map[string]interface{}) (packer.Commun User: config.SSHUser, Auth: []gossh.ClientAuth{ gossh.ClientAuthPassword(ssh.Password(config.SSHPassword)), + gossh.ClientAuthKeyboardInteractive( + ssh.PasswordKeyboardInteractive(config.SSHPassword)), }, }