How to setup running packer through a bastion

60 views
Skip to first unread message

justi...@deciphernow.com

unread,
Mar 22, 2018, 1:15:39 PM3/22/18
to Packer
Hi all,

I'm trying to setup bastion to communicate over ssh through a bastion.  I've tried every conceivable configuration of the communicator: https://www.packer.io/docs/templates/communicator.html, but nothing seems to work.

I can ssh manually into the bastion both with username/password and ssh key, but neither of those seems to work when setup in the communicator.  Does anyone have any pointers on how to understand what's going wrong?  I've increased the logging, but that doesn't seem to extend to the actual ssh calls, so I basically get nothing between "waiting for SSH to become available" and "ssh rejected".

Thanks
Justin

Gabo Kete

unread,
Mar 22, 2018, 4:08:41 PM3/22/18
to Packer
HI Justin

Can you share your packer logs and JSON file, that way we can have more information to see what is going on...

PACKER_LOG=packer build <YOUR_JSON_FILE.JSON>

justi...@deciphernow.com

unread,
Mar 27, 2018, 4:27:13 PM3/27/18
to Packer
Thanks very much for the reply Gabo - I actually have been able to work thought this.  The issue was not with the bastion, but with the AMI that I was trying to connect TO through the bastion.  The AMI in use wasn't accepting SSH connections, and the return from packer made it seem to me like i wasn't even getting to the bastion.
Reply all
Reply to author
Forward
0 new messages