I'm currently trying to use the aws-ebs builder to deploy an AMI from a
packer built Centos 7 minimal AMI (not from the marketplace). The base AMI
is configured to use an account called ec2-user account for ssh; therefore
my builder file looks like the example below. During the build process, the
temporary instance is created, but packer isn't able to SSH to the new
temporary instance. I've confirmed, using debug methods that the SSH keys
are in fact in place and that I can manually connect to the instance. I've
also confirmed from the instance logs, that packer is attempting to connect
to the instance, and sshd is able to find the public key on the instance,
but then the session is terminated
Packer 0.10.1
Attached Packer debug log
Thanks for the help.
{
"builders": [{
"type": "amazon-ebs",
"access_key": "",
"secret_key": "",
"region": "us-east-1",
"vpc_id" : "my_vpc_id",
"source_ami": "my_ami_id",
"instance_type": "t2.micro",
"user_data_file" : "my_user_data_file_path",
"ssh_keypair_name" : "my_key_name",
"ssh_private_key_file" : "my_key_path.pem",
"ssh_username": "ec2-user",
"associate_public_ip_address" : "1",
"subnet_id" : "my_subnet_id",
"ami_name": "test {{timestamp}}"
}]
}
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/fa622d18-2687-443a-b114-ad92718bc26f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2016/08/02 17:08:11 [INFO] Packer version: 0.10.1
2016/08/02 17:08:11 Packer Target OS/Arch: linux amd64
2016/08/02 17:08:11 Built with Go Version: go1.6.2
2016/08/02 17:08:11 [DEBUG] Discovered plugin: amazon-chroot =
/usr/local/packer/packer-builder-amazon-chroot
2016/08/02 17:08:11 [DEBUG] Discovered plugin: amazon-ebs =
/usr/local/packer/packer-builder-amazon-ebs
2016/08/02 17:08:11 [DEBUG] Discovered plugin: amazon-instance =
/usr/local/packer/packer-builder-amazon-instance
2016/08/02 17:08:11 [DEBUG] Discovered plugin: digitalocean =
/usr/local/packer/packer-builder-digitalocean
2016/08/02 17:08:11 [DEBUG] Discovered plugin: docker =
/usr/local/packer/packer-builder-docker
2016/08/02 17:08:11 [DEBUG] Discovered plugin: file =
/usr/local/packer/packer-builder-file
2016/08/02 17:08:11 [DEBUG] Discovered plugin: googlecompute =
/usr/local/packer/packer-builder-googlecompute
2016/08/02 17:08:11 [DEBUG] Discovered plugin: null =
/usr/local/packer/packer-builder-null
2016/08/02 17:08:11 [DEBUG] Discovered plugin: openstack =
/usr/local/packer/packer-builder-openstack
2016/08/02 17:08:11 [DEBUG] Discovered plugin: parallels-iso =
/usr/local/packer/packer-builder-parallels-iso
2016/08/02 17:08:11 [DEBUG] Discovered plugin: parallels-pvm =
/usr/local/packer/packer-builder-parallels-pvm
2016/08/02 17:08:11 [DEBUG] Discovered plugin: qemu =
/usr/local/packer/packer-builder-qemu
2016/08/02 17:08:11 [DEBUG] Discovered plugin: virtualbox-iso =
/usr/local/packer/packer-builder-virtualbox-iso
2016/08/02 17:08:11 [DEBUG] Discovered plugin: virtualbox-ovf =
/usr/local/packer/packer-builder-virtualbox-ovf
2016/08/02 17:08:11 [DEBUG] Discovered plugin: vmware-iso =
/usr/local/packer/packer-builder-vmware-iso
2016/08/02 17:08:11 [DEBUG] Discovered plugin: vmware-vmx =
/usr/local/packer/packer-builder-vmware-vmx
2016/08/02 17:08:11 [DEBUG] Discovered plugin: artifice =
/usr/local/packer/packer-post-processor-artifice
2016/08/02 17:08:11 [DEBUG] Discovered plugin: atlas =
/usr/local/packer/packer-post-processor-atlas
2016/08/02 17:08:11 [DEBUG] Discovered plugin: compress =
/usr/local/packer/packer-post-processor-compress
2016/08/02 17:08:11 [DEBUG] Discovered plugin: docker-import =
/usr/local/packer/packer-post-processor-docker-import
2016/08/02 17:08:11 [DEBUG] Discovered plugin: docker-push =
/usr/local/packer/packer-post-processor-docker-push
2016/08/02 17:08:11 [DEBUG] Discovered plugin: docker-save =
/usr/local/packer/packer-post-processor-docker-save
2016/08/02 17:08:11 [DEBUG] Discovered plugin: docker-tag =
/usr/local/packer/packer-post-processor-docker-tag
2016/08/02 17:08:11 [DEBUG] Discovered plugin: vagrant =
/usr/local/packer/packer-post-processor-vagrant
2016/08/02 17:08:11 [DEBUG] Discovered plugin: vagrant-cloud =
/usr/local/packer/packer-post-processor-vagrant-cloud
2016/08/02 17:08:11 [DEBUG] Discovered plugin: vsphere =
/usr/local/packer/packer-post-processor-vsphere
2016/08/02 17:08:11 [DEBUG] Discovered plugin: ansible-local =
/usr/local/packer/packer-provisioner-ansible-local
2016/08/02 17:08:11 [DEBUG] Discovered plugin: chef-client =
/usr/local/packer/packer-provisioner-chef-client
2016/08/02 17:08:11 [DEBUG] Discovered plugin: chef-solo =
/usr/local/packer/packer-provisioner-chef-solo
2016/08/02 17:08:11 [DEBUG] Discovered plugin: file =
/usr/local/packer/packer-provisioner-file
2016/08/02 17:08:11 [DEBUG] Discovered plugin: powershell =
/usr/local/packer/packer-provisioner-powershell
2016/08/02 17:08:11 [DEBUG] Discovered plugin: puppet-masterless =
/usr/local/packer/packer-provisioner-puppet-masterless
2016/08/02 17:08:11 [DEBUG] Discovered plugin: puppet-server =
/usr/local/packer/packer-provisioner-puppet-server
2016/08/02 17:08:11 [DEBUG] Discovered plugin: salt-masterless =
/usr/local/packer/packer-provisioner-salt-masterless
2016/08/02 17:08:11 [DEBUG] Discovered plugin: shell =
/usr/local/packer/packer-provisioner-shell
2016/08/02 17:08:11 [DEBUG] Discovered plugin: shell-local =
/usr/local/packer/packer-provisioner-shell-local
2016/08/02 17:08:11 [DEBUG] Discovered plugin: windows-restart =
/usr/local/packer/packer-provisioner-windows-restart
2016/08/02 17:08:11 [DEBUG] Discovered plugin: windows-shell =
/usr/local/packer/packer-provisioner-windows-shell
2016/08/02 17:08:11 Detected home directory from env var: /home/cforrest_sa
2016/08/02 17:08:11 Using internal plugin for azure-arm
2016/08/02 17:08:11 Using internal plugin for ansible
2016/08/02 17:08:11 Using internal plugin for amazon-import
2016/08/02 17:08:11 Using internal plugin for shell-local
2016/08/02 17:08:11 Detected home directory from env var: /home/cforrest_sa
2016/08/02 17:08:11 Attempting to open config file:
/home/cforrest_sa/.packerconfig
2016/08/02 17:08:11 [WARN] Config file doesn't exist:
/home/cforrest_sa/.packerconfig
2016/08/02 17:08:11 Packer config: &{DisableCheckpoint:false
DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000
Builders:map[amazon-instance:/usr/local/packer/packer-builder-amazon-instance
googlecompute:/usr/local/packer/packer-builder-googlecompute
digitalocean:/usr/local/packer/packer-builder-digitalocean
null:/usr/local/packer/packer-builder-null
openstack:/usr/local/packer/packer-builder-openstack
virtualbox-ovf:/usr/local/packer/packer-builder-virtualbox-ovf
amazon-chroot:/usr/local/packer/packer-builder-amazon-chroot
parallels-iso:/usr/local/packer/packer-builder-parallels-iso
parallels-pvm:/usr/local/packer/packer-builder-parallels-pvm
vmware-vmx:/usr/local/packer/packer-builder-vmware-vmx
azure-arm:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm
vmware-iso:/usr/local/packer/packer-builder-vmware-iso
amazon-ebs:/usr/local/packer/packer-builder-amazon-ebs
docker:/usr/local/packer/packer-builder-docker
file:/usr/local/packer/packer-builder-file
qemu:/usr/local/packer/packer-builder-qemu
virtualbox-iso:/usr/local/packer/packer-builder-virtualbox-iso]
PostProcessors:map[vagrant-cloud:/usr/local/packer/packer-post-processor-vagrant-cloud
vsphere:/usr/local/packer/packer-post-processor-vsphere
shell-local:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local
artifice:/usr/local/packer/packer-post-processor-artifice
compress:/usr/local/packer/packer-post-processor-compress
docker-push:/usr/local/packer/packer-post-processor-docker-push
docker-save:/usr/local/packer/packer-post-processor-docker-save
docker-tag:/usr/local/packer/packer-post-processor-docker-tag
vagrant:/usr/local/packer/packer-post-processor-vagrant
amazon-import:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import
atlas:/usr/local/packer/packer-post-processor-atlas
docker-import:/usr/local/packer/packer-post-processor-docker-import]
Provisioners:map[puppet-masterless:/usr/local/packer/packer-provisioner-puppet-masterless
puppet-server:/usr/local/packer/packer-provisioner-puppet-server
shell:/usr/local/packer/packer-provisioner-shell
windows-shell:/usr/local/packer/packer-provisioner-windows-shell
ansible:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible
ansible-local:/usr/local/packer/packer-provisioner-ansible-local
chef-solo:/usr/local/packer/packer-provisioner-chef-solo
powershell:/usr/local/packer/packer-provisioner-powershell
salt-masterless:/usr/local/packer/packer-provisioner-salt-masterless
shell-local:/usr/local/packer/packer-provisioner-shell-local
windows-restart:/usr/local/packer/packer-provisioner-windows-restart
chef-client:/usr/local/packer/packer-provisioner-chef-client
file:/usr/local/packer/packer-provisioner-file]}
2016/08/02 17:08:11 Setting cache directory: /home/cforrest_sa/packer_cache
2016/08/02 17:08:11 Detected home directory from env var: /home/cforrest_sa
2016/08/02 17:08:11 Loading builder: amazon-ebs
2016/08/02 17:08:11 Creating plugin client for path:
/usr/local/packer/packer-builder-amazon-ebs
2016/08/02 17:08:11 Starting plugin:
/usr/local/packer/packer-builder-amazon-ebs
[]string{"/usr/local/packer/packer-builder-amazon-ebs"}
2016/08/02 17:08:11 Waiting for RPC address for:
/usr/local/packer/packer-builder-amazon-ebs
2016/08/02 17:08:11 packer-builder-amazon-ebs: 2016/08/02 17:08:11 Plugin
minimum port: 10000
2016/08/02 17:08:11 packer-builder-amazon-ebs: 2016/08/02 17:08:11 Plugin
maximum port: 25000
2016/08/02 17:08:11 packer-builder-amazon-ebs: 2016/08/02 17:08:11 Plugin
address: unix /tmp/packer-plugin771733054
2016/08/02 17:08:11 packer-builder-amazon-ebs: 2016/08/02 17:08:11 Waiting for
connection...
2016/08/02 17:08:11 packer-builder-amazon-ebs: 2016/08/02 17:08:11 Serving a
plugin connection...
2016/08/02 17:08:11 ui: amazon-ebs output will be in this color.
2016/08/02 17:08:11 ui:
2016/08/02 17:08:11 Build debug mode: false
2016/08/02 17:08:11 Force build: false
2016/08/02 17:08:11 Preparing build: amazon-ebs
i2016/08/02 17:08:11 packer-builder-amazon-ebs: 2016/08/02 17:08:11 Config:
{PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs
PackerDebug:false PackerForce:false PackerUserVars:map[]}
AccessConfig:{AccessKey:<Filtered> SecretKey:<Filtered> RawRegion:us-east-1
Token:} AMIConfig:{AMIName:redacted-test 1470175691 AMIDescription:
AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[]
AMITags:map[] AMIEnhancedNetworking:false AMIForceDeregister:false}
BlockDevices:{AMIMappings:[] LaunchMappings:[]}
RunConfig:{AssociatePublicIpAddress:true AvailabilityZone: IamInstanceProfile:
InstanceType:t2.micro RunTags:map[] SourceAmi:ami-1916870e SpotPrice:
SpotPriceAutoProduct: SecurityGroupId: SecurityGroupIds:[]
SubnetId:subnet-88aeaefe TemporaryKeyPairName: UserData:
UserDataFile:/home/redacted/Documents/userdata.sh WindowsPasswordTimeout:10m0s
VpcId:vpc-576dd930 Comm:{Type:ssh SSHHost: SSHPort:22 SSHUsername:ec2-user
SSHPassword: SSHPrivateKey:/home/redacted/.ssh/aws_devops.pem SSHPty:false
SSHTimeout:10m0s SSHDisableAgent:false SSHHandshakeAttempts:1000
SSHBastionHost: SSHBastionPort:0 SSHBastionUsername: SSHBastionPassword:
SSHBastionPrivateKey: WinRMUser: WinRMPassword: WinRMHost: WinRMPort:0
WinRMTimeout:0} SSHKeyPairName:devops_rsa_4096 SSHPrivateIp:false}
ctx:{Data:<nil> Funcs:map[clean_ami_name:0x51ee50] UserVariables:map[]
EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs
TemplatePath:/home/redacted/Documents/imagetest}}
2016/08/02 17:08:11 Waiting on builds to complete...
2016/08/02 17:08:11 Starting build run: amazon-ebs
2016/08/02 17:08:11 Running builder: amazon-ebs
2016/08/02 17:08:11 ui: ==> amazon-ebs: Prevalidating AMI Name...
2016/08/02 17:08:12 ui: ==> amazon-ebs: Inspecting the source AMI...
2016/08/02 17:08:12 ui: ==> amazon-ebs: Creating temporary security group for
this instance...
2016/08/02 17:08:12 packer-builder-amazon-ebs: 2016/08/02 17:08:12 Temporary
group name: packer 57a119cc-70a5-3289-5324-45f5ce619092
2016/08/02 17:08:12 ui: ==> amazon-ebs: Authorizing access to port 22 the
temporary security group...
2016/08/02 17:08:12 packer-builder-amazon-ebs: 2016/08/02 17:08:12 [DEBUG]
base64 encoding user data...
2016/08/02 17:08:12 ui: ==> amazon-ebs: Launching a source AWS instance...
2016/08/02 17:08:13 ui: amazon-ebs: Instance ID: i-36bb54af
2016/08/02 17:08:13 ui: ==> amazon-ebs: Waiting for instance (i-36bb54af) to
become ready...
2016/08/02 17:08:13 packer-builder-amazon-ebs: 2016/08/02 17:08:13 Waiting for
state to become: running
2016/08/02 17:08:13 packer-builder-amazon-ebs: 2016/08/02 17:08:13 Allowing
300s to complete (change with AWS_TIMEOUT_SECONDS)
2016/08/02 17:08:40 packer-builder-amazon-ebs: 2016/08/02 17:08:40 [INFO] Not
using winrm communicator, skipping get password...
2016/08/02 17:08:40 packer-builder-amazon-ebs: 2016/08/02 17:08:40 [INFO]
Waiting for SSH, up to timeout: 10m0s
2016/08/02 17:08:40 ui: ==> amazon-ebs: Waiting for SSH to become available...
2016/08/02 17:08:55 packer-builder-amazon-ebs: 2016/08/02 17:08:55 [DEBUG] TCP
connection to SSH ip/port failed: dial tcp 54.174.132.16:22: i/o timeout
2016/08/02 17:09:15 packer-builder-amazon-ebs: 2016/08/02 17:09:15 [DEBUG] TCP
connection to SSH ip/port failed: dial tcp 54.174.132.16:22: i/o timeout
2016/08/02 17:09:35 packer-builder-amazon-ebs: 2016/08/02 17:09:35 [DEBUG] TCP
connection to SSH ip/port failed: dial tcp 54.174.132.16:22: i/o timeout
2016/08/02 17:09:43 packer-builder-amazon-ebs: 2016/08/02 17:09:43 [DEBUG] TCP
connection to SSH ip/port failed: dial tcp 54.174.132.16:22: getsockopt:
connection refused
2016/08/02 17:09:48 packer-builder-amazon-ebs: 2016/08/02 17:09:48 [INFO]
Attempting SSH connection...
2016/08/02 17:09:48 packer-builder-amazon-ebs: 2016/08/02 17:09:48 reconnecting
to TCP connection for SSH
2016/08/02 17:09:48 packer-builder-amazon-ebs: 2016/08/02 17:09:48 handshaking
with SSH
2016/08/02 17:09:49 packer-builder-amazon-ebs: 2016/08/02 17:09:49 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:09:49 packer-builder-amazon-ebs: 2016/08/02 17:09:49 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:09:49 packer-builder-amazon-ebs: 2016/08/02 17:09:49 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:09:56 packer-builder-amazon-ebs: 2016/08/02 17:09:56 [INFO]
Attempting SSH connection...
2016/08/02 17:09:56 packer-builder-amazon-ebs: 2016/08/02 17:09:56 reconnecting
to TCP connection for SSH
2016/08/02 17:09:56 packer-builder-amazon-ebs: 2016/08/02 17:09:56 handshaking
with SSH
2016/08/02 17:09:57 packer-builder-amazon-ebs: 2016/08/02 17:09:57 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:09:57 packer-builder-amazon-ebs: 2016/08/02 17:09:57 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:09:57 packer-builder-amazon-ebs: 2016/08/02 17:09:57 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:04 packer-builder-amazon-ebs: 2016/08/02 17:10:04 [INFO]
Attempting SSH connection...
2016/08/02 17:10:04 packer-builder-amazon-ebs: 2016/08/02 17:10:04 reconnecting
to TCP connection for SSH
2016/08/02 17:10:04 packer-builder-amazon-ebs: 2016/08/02 17:10:04 handshaking
with SSH
2016/08/02 17:10:04 packer-builder-amazon-ebs: 2016/08/02 17:10:04 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:04 packer-builder-amazon-ebs: 2016/08/02 17:10:04 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:04 packer-builder-amazon-ebs: 2016/08/02 17:10:04 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:11 packer-builder-amazon-ebs: 2016/08/02 17:10:11 [INFO]
Attempting SSH connection...
2016/08/02 17:10:11 packer-builder-amazon-ebs: 2016/08/02 17:10:11 reconnecting
to TCP connection for SSH
2016/08/02 17:10:11 packer-builder-amazon-ebs: 2016/08/02 17:10:11 handshaking
with SSH
2016/08/02 17:10:11 packer-builder-amazon-ebs: 2016/08/02 17:10:11 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:11 packer-builder-amazon-ebs: 2016/08/02 17:10:11 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:11 packer-builder-amazon-ebs: 2016/08/02 17:10:11 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:18 packer-builder-amazon-ebs: 2016/08/02 17:10:18 [INFO]
Attempting SSH connection...
2016/08/02 17:10:18 packer-builder-amazon-ebs: 2016/08/02 17:10:18 reconnecting
to TCP connection for SSH
2016/08/02 17:10:18 packer-builder-amazon-ebs: 2016/08/02 17:10:18 handshaking
with SSH
2016/08/02 17:10:18 packer-builder-amazon-ebs: 2016/08/02 17:10:18 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:18 packer-builder-amazon-ebs: 2016/08/02 17:10:18 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:18 packer-builder-amazon-ebs: 2016/08/02 17:10:18 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:26 packer-builder-amazon-ebs: 2016/08/02 17:10:26 [INFO]
Attempting SSH connection...
2016/08/02 17:10:26 packer-builder-amazon-ebs: 2016/08/02 17:10:26 reconnecting
to TCP connection for SSH
2016/08/02 17:10:26 packer-builder-amazon-ebs: 2016/08/02 17:10:26 handshaking
with SSH
2016/08/02 17:10:26 packer-builder-amazon-ebs: 2016/08/02 17:10:26 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:26 packer-builder-amazon-ebs: 2016/08/02 17:10:26 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:26 packer-builder-amazon-ebs: 2016/08/02 17:10:26 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:33 packer-builder-amazon-ebs: 2016/08/02 17:10:33 [INFO]
Attempting SSH connection...
2016/08/02 17:10:33 packer-builder-amazon-ebs: 2016/08/02 17:10:33 reconnecting
to TCP connection for SSH
2016/08/02 17:10:33 packer-builder-amazon-ebs: 2016/08/02 17:10:33 handshaking
with SSH
2016/08/02 17:10:33 packer-builder-amazon-ebs: 2016/08/02 17:10:33 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:33 packer-builder-amazon-ebs: 2016/08/02 17:10:33 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:33 packer-builder-amazon-ebs: 2016/08/02 17:10:33 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:40 packer-builder-amazon-ebs: 2016/08/02 17:10:40 [INFO]
Attempting SSH connection...
2016/08/02 17:10:40 packer-builder-amazon-ebs: 2016/08/02 17:10:40 reconnecting
to TCP connection for SSH
2016/08/02 17:10:40 packer-builder-amazon-ebs: 2016/08/02 17:10:40 handshaking
with SSH
2016/08/02 17:10:40 packer-builder-amazon-ebs: 2016/08/02 17:10:40 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:40 packer-builder-amazon-ebs: 2016/08/02 17:10:40 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:40 packer-builder-amazon-ebs: 2016/08/02 17:10:40 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:47 packer-builder-amazon-ebs: 2016/08/02 17:10:47 [INFO]
Attempting SSH connection...
2016/08/02 17:10:47 packer-builder-amazon-ebs: 2016/08/02 17:10:47 reconnecting
to TCP connection for SSH
2016/08/02 17:10:47 packer-builder-amazon-ebs: 2016/08/02 17:10:47 handshaking
with SSH
2016/08/02 17:10:47 packer-builder-amazon-ebs: 2016/08/02 17:10:47 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:47 packer-builder-amazon-ebs: 2016/08/02 17:10:47 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:47 packer-builder-amazon-ebs: 2016/08/02 17:10:47 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:10:54 packer-builder-amazon-ebs: 2016/08/02 17:10:54 [INFO]
Attempting SSH connection...
2016/08/02 17:10:54 packer-builder-amazon-ebs: 2016/08/02 17:10:54 reconnecting
to TCP connection for SSH
2016/08/02 17:10:54 packer-builder-amazon-ebs: 2016/08/02 17:10:54 handshaking
with SSH
2016/08/02 17:10:55 packer-builder-amazon-ebs: 2016/08/02 17:10:55 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:10:55 packer-builder-amazon-ebs: 2016/08/02 17:10:55 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:10:55 packer-builder-amazon-ebs: 2016/08/02 17:10:55 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:02 packer-builder-amazon-ebs: 2016/08/02 17:11:02 [INFO]
Attempting SSH connection...
2016/08/02 17:11:02 packer-builder-amazon-ebs: 2016/08/02 17:11:02 reconnecting
to TCP connection for SSH
2016/08/02 17:11:02 packer-builder-amazon-ebs: 2016/08/02 17:11:02 handshaking
with SSH
2016/08/02 17:11:02 packer-builder-amazon-ebs: 2016/08/02 17:11:02 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[publickey none], no supported methods remain
2016/08/02 17:11:02 packer-builder-amazon-ebs: 2016/08/02 17:11:02 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [publickey none], no supported methods remain
2016/08/02 17:11:02 packer-builder-amazon-ebs: 2016/08/02 17:11:02 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:09 packer-builder-amazon-ebs: 2016/08/02 17:11:09 [INFO]
Attempting SSH connection...
2016/08/02 17:11:09 packer-builder-amazon-ebs: 2016/08/02 17:11:09 reconnecting
to TCP connection for SSH
2016/08/02 17:11:09 packer-builder-amazon-ebs: 2016/08/02 17:11:09 handshaking
with SSH
2016/08/02 17:11:09 packer-builder-amazon-ebs: 2016/08/02 17:11:09 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:11:09 packer-builder-amazon-ebs: 2016/08/02 17:11:09 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:11:09 packer-builder-amazon-ebs: 2016/08/02 17:11:09 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:16 packer-builder-amazon-ebs: 2016/08/02 17:11:16 [INFO]
Attempting SSH connection...
2016/08/02 17:11:16 packer-builder-amazon-ebs: 2016/08/02 17:11:16 reconnecting
to TCP connection for SSH
2016/08/02 17:11:16 packer-builder-amazon-ebs: 2016/08/02 17:11:16 handshaking
with SSH
2016/08/02 17:11:16 packer-builder-amazon-ebs: 2016/08/02 17:11:16 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:11:16 packer-builder-amazon-ebs: 2016/08/02 17:11:16 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:11:16 packer-builder-amazon-ebs: 2016/08/02 17:11:16 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:23 packer-builder-amazon-ebs: 2016/08/02 17:11:23 [INFO]
Attempting SSH connection...
2016/08/02 17:11:23 packer-builder-amazon-ebs: 2016/08/02 17:11:23 reconnecting
to TCP connection for SSH
2016/08/02 17:11:23 packer-builder-amazon-ebs: 2016/08/02 17:11:23 handshaking
with SSH
2016/08/02 17:11:24 packer-builder-amazon-ebs: 2016/08/02 17:11:24 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:11:24 packer-builder-amazon-ebs: 2016/08/02 17:11:24 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:11:24 packer-builder-amazon-ebs: 2016/08/02 17:11:24 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:31 packer-builder-amazon-ebs: 2016/08/02 17:11:31 [INFO]
Attempting SSH connection...
2016/08/02 17:11:31 packer-builder-amazon-ebs: 2016/08/02 17:11:31 reconnecting
to TCP connection for SSH
2016/08/02 17:11:31 packer-builder-amazon-ebs: 2016/08/02 17:11:31 handshaking
with SSH
2016/08/02 17:11:31 packer-builder-amazon-ebs: 2016/08/02 17:11:31 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:11:31 packer-builder-amazon-ebs: 2016/08/02 17:11:31 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:11:31 packer-builder-amazon-ebs: 2016/08/02 17:11:31 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:38 packer-builder-amazon-ebs: 2016/08/02 17:11:38 [INFO]
Attempting SSH connection...
2016/08/02 17:11:38 packer-builder-amazon-ebs: 2016/08/02 17:11:38 reconnecting
to TCP connection for SSH
2016/08/02 17:11:38 packer-builder-amazon-ebs: 2016/08/02 17:11:38 handshaking
with SSH
2016/08/02 17:11:38 packer-builder-amazon-ebs: 2016/08/02 17:11:38 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:11:38 packer-builder-amazon-ebs: 2016/08/02 17:11:38 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:11:38 packer-builder-amazon-ebs: 2016/08/02 17:11:38 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:45 packer-builder-amazon-ebs: 2016/08/02 17:11:45 [INFO]
Attempting SSH connection...
2016/08/02 17:11:45 packer-builder-amazon-ebs: 2016/08/02 17:11:45 reconnecting
to TCP connection for SSH
2016/08/02 17:11:45 packer-builder-amazon-ebs: 2016/08/02 17:11:45 handshaking
with SSH
2016/08/02 17:11:46 packer-builder-amazon-ebs: 2016/08/02 17:11:46 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:11:46 packer-builder-amazon-ebs: 2016/08/02 17:11:46 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:11:46 packer-builder-amazon-ebs: 2016/08/02 17:11:46 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:11:53 packer-builder-amazon-ebs: 2016/08/02 17:11:53 [INFO]
Attempting SSH connection...
2016/08/02 17:11:53 packer-builder-amazon-ebs: 2016/08/02 17:11:53 reconnecting
to TCP connection for SSH
2016/08/02 17:11:53 packer-builder-amazon-ebs: 2016/08/02 17:11:53 handshaking
with SSH
2016/08/02 17:11:53 packer-builder-amazon-ebs: 2016/08/02 17:11:53 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[publickey none], no supported methods remain
2016/08/02 17:11:53 packer-builder-amazon-ebs: 2016/08/02 17:11:53 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [publickey none], no supported methods remain
2016/08/02 17:11:53 packer-builder-amazon-ebs: 2016/08/02 17:11:53 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:12:00 packer-builder-amazon-ebs: 2016/08/02 17:12:00 [INFO]
Attempting SSH connection...
2016/08/02 17:12:00 packer-builder-amazon-ebs: 2016/08/02 17:12:00 reconnecting
to TCP connection for SSH
2016/08/02 17:12:00 packer-builder-amazon-ebs: 2016/08/02 17:12:00 handshaking
with SSH
2016/08/02 17:12:00 packer-builder-amazon-ebs: 2016/08/02 17:12:00 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:12:00 packer-builder-amazon-ebs: 2016/08/02 17:12:00 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:12:00 packer-builder-amazon-ebs: 2016/08/02 17:12:00 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:12:07 packer-builder-amazon-ebs: 2016/08/02 17:12:07 [INFO]
Attempting SSH connection...
2016/08/02 17:12:07 packer-builder-amazon-ebs: 2016/08/02 17:12:07 reconnecting
to TCP connection for SSH
2016/08/02 17:12:07 packer-builder-amazon-ebs: 2016/08/02 17:12:07 handshaking
with SSH
2016/08/02 17:12:07 packer-builder-amazon-ebs: 2016/08/02 17:12:07 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:12:07 packer-builder-amazon-ebs: 2016/08/02 17:12:07 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:12:07 packer-builder-amazon-ebs: 2016/08/02 17:12:07 [DEBUG]
Detected authentication error. Increasing handshake attempts.
2016/08/02 17:12:14 packer-builder-amazon-ebs: 2016/08/02 17:12:14 [INFO]
Attempting SSH connection...
2016/08/02 17:12:14 packer-builder-amazon-ebs: 2016/08/02 17:12:14 reconnecting
to TCP connection for SSH
2016/08/02 17:12:14 packer-builder-amazon-ebs: 2016/08/02 17:12:14 handshaking
with SSH
2016/08/02 17:12:15 packer-builder-amazon-ebs: 2016/08/02 17:12:15 handshake
error: ssh: handshake failed: ssh: unable to authenticate, attempted methods
[none publickey], no supported methods remain
2016/08/02 17:12:15 packer-builder-amazon-ebs: 2016/08/02 17:12:15 [DEBUG] SSH
handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted
methods [none publickey], no supported methods remain
2016/08/02 17:12:15 packer-builder-amazon-ebs: 2016/08/02 17:12:15 [DEBUG]
Detected authentication error. Increasing handshake attempts.
^C2016/08/02 17:12:20 Closing stdin because interrupt received.
2016/08/02 17:12:20 Stopping build: amazon-ebs
2016/08/02 17:12:20 packer-builder-amazon-ebs: 2016/08/02 17:12:20 Received
interrupt signal (count: 1). Ignoring.
2016/08/02 17:12:20 packer-builder-amazon-ebs: 2016/08/02 17:12:20 Cancelling
the step runner...
2016/08/02 17:12:20 packer-builder-amazon-ebs: 2016/08/02 17:12:20 [WARN]
Interrupt detected, quitting waiting for SSH.
2016/08/02 17:12:20 packer-builder-amazon-ebs: 2016/08/02 17:12:20 [DEBUG] SSH
wait cancelled. Exiting loop.
2016/08/02 17:12:20 ui: ==> amazon-ebs: Terminating the source AWS instance...
2016/08/02 17:12:21 packer-builder-amazon-ebs: 2016/08/02 17:12:21 Waiting for
state to become: terminated
2016/08/02 17:12:21 packer-builder-amazon-ebs: 2016/08/02 17:12:21 Allowing
300s to complete (change with AWS_TIMEOUT_SECONDS)
2016/08/02 17:13:29 ui: ==> amazon-ebs: No AMIs to cleanup
2016/08/02 17:13:29 ui: ==> amazon-ebs: Deleting temporary security group...
2016/08/02 17:13:30 Build cancelled: amazon-ebs
2016/08/02 17:13:30 ui: Build 'amazon-ebs' finished.
2016/08/02 17:13:30 Builds completed. Waiting on interrupt barrier...
2016/08/02 17:13:30 ui: Cleanly cancelled builds after being interrupted.
2016/08/02 17:13:30 waiting for all plugin processes to complete...
2016/08/02 17:13:30 /usr/local/packer/packer-builder-amazon-ebs: plugin process
exited