From 34731622347cd1d1cd30aab66e065296cd819601 Mon Sep 17 00:00:00 2001 From: Andrew Pryde Date: Mon, 13 Feb 2017 12:58:40 +0000 Subject: [PATCH] Add pass and interactive auth to bmcs ssh conf Adds password and keyboard interactive authentication to the oracle-bmcs builder. --- builder/oracle/bmcs/ssh.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/oracle/bmcs/ssh.go b/builder/oracle/bmcs/ssh.go index 950506fff..20fa8b6d3 100644 --- a/builder/oracle/bmcs/ssh.go +++ b/builder/oracle/bmcs/ssh.go @@ -10,6 +10,7 @@ import ( "fmt" "github.com/mitchellh/multistep" + packerssh "github.com/mitchellh/packer/communicator/ssh" "golang.org/x/crypto/ssh" ) @@ -31,6 +32,9 @@ func sshConfig(state multistep.StateBag) (*ssh.ClientConfig, error) { User: c.Comm.SSHUsername, Auth: []ssh.AuthMethod{ ssh.PublicKeys(signer), + ssh.Password(c.Comm.SSHPassword), + ssh.KeyboardInteractive( + packerssh.PasswordKeyboardInteractive(c.Comm.SSHPassword)), }, }, nil }