diff --git a/communicator/step_connect_ssh.go b/communicator/step_connect_ssh.go index 652b5c4b37..fce6175f6a 100644 --- a/communicator/step_connect_ssh.go +++ b/communicator/step_connect_ssh.go @@ -165,6 +165,8 @@ func (s *StepConnectSSH) waitForSSH(state multistep.StateBag, ctx context.Contex var connFunc func() (net.Conn, error) address := fmt.Sprintf("%s:%d", host, port) if bAddr != "" { + log.Printf("[INFO] connecting with SSH to host %s through bastion at %s", + address, bAddr) // We're using a bastion host, so use the bastion connfunc connFunc = ssh.BastionConnectFunc( bProto, bAddr, bConf, "tcp", address) diff --git a/sdk-internals/communicator/ssh/connect.go b/sdk-internals/communicator/ssh/connect.go index 80bf0a9f45..34fdd42eda 100644 --- a/sdk-internals/communicator/ssh/connect.go +++ b/sdk-internals/communicator/ssh/connect.go @@ -2,6 +2,7 @@ package ssh import ( "fmt" + "log" "net" "time" @@ -62,6 +63,8 @@ func BastionConnectFunc( return nil, fmt.Errorf("Error connecting to bastion: %s", err) } + log.Printf("[DEBUG] connected to bastion, hopping to destination") + // Connect through to the end host conn, err := bastion.Dial(proto, addr) if err != nil {