{"action":"closed","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2078","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2078/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2078/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2078/events","html_url":"https://github.com/mitchellh/packer/issues/2078","id":71885901,"number":2078,"title":"ssh_private_key_file private SSH key with passphrase","user":{"login":"pwilczynskiclearcode","id":3940860,"avatar_url":"https://avatars.githubusercontent.com/u/3940860?v=3","gravatar_id":"","url":"https://api.github.com/users/pwilczynskiclearcode","html_url":"https://github.com/pwilczynskiclearcode","followers_url":"https://api.github.com/users/pwilczynskiclearcode/followers","following_url":"https://api.github.com/users/pwilczynskiclearcode/following{/other_user}","gists_url":"https://api.github.com/users/pwilczynskiclearcode/gists{/gist_id}","starred_url":"https://api.github.com/users/pwilczynskiclearcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwilczynskiclearcode/subscriptions","organizations_url":"https://api.github.com/users/pwilczynskiclearcode/orgs","repos_url":"https://api.github.com/users/pwilczynskiclearcode/repos","events_url":"https://api.github.com/users/pwilczynskiclearcode/events{/privacy}","received_events_url":"https://api.github.com/users/pwilczynskiclearcode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/amazon","name":"builder/amazon","color":"d4c5f9"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T14:12:05Z","updated_at":"2015-06-18T08:14:20Z","closed_at":"2015-06-18T08:14:19Z","body":"When I use `ssh_private_key_file` that requires a passphrase `packer build` doesn't ask me to give a password but silently waits for SSH timeout.\r\n\r\nec2.json:\r\n```\r\n{\r\n        \"builders\": [{\r\n          \"type\": \"amazon-ebs\",\r\n          \"access_key\": \"XXX\",\r\n          \"secret_key\": \"XXX\",\r\n          \"region\": \"us-east-1\",\r\n          \"source_ami\": \"ami-884748e0\",\r\n          \"instance_type\": \"m3.medium\",\r\n          \"ssh_username\": \"XXX\",\r\n          \"ami_name\": \"packer-quick-start {{timestamp}}\",\r\n          \"security_group_ids\": [\"sg-f8aaec9c\"],\r\n          \"ssh_private_key_file\": \"/home/vagrant/dv/private\"\r\n        }]\r\n}\r\n```\r\n\r\n```\r\n$ packer build -debug ec2.json \r\nDebug mode enabled. Builds will not be parallelized.\r\namazon-ebs output will be in this color.\r\n==> amazon-ebs: Inspecting the source AMI...\r\n==> amazon-ebs: Pausing after run of step 'StepSourceAMIInfo'. Press enter to continue. \r\n==> amazon-ebs: Pausing after run of step 'StepKeyPair'. Press enter to continue. \r\n==> amazon-ebs: Pausing after run of step 'StepSecurityGroup'. Press enter to continue. \r\n==> amazon-ebs: Launching a source AWS instance...\r\n    amazon-ebs: Instance ID: i-bca29e93\r\n==> amazon-ebs: Waiting for instance (i-bca29e93) to become ready...\r\n    amazon-ebs: Public DNS: ec2-52-6-35-25.compute-1.amazonaws.com\r\n    amazon-ebs: Public IP: 52.6.35.25\r\n    amazon-ebs: Private IP: 172.31.40.241\r\n==> amazon-ebs: Pausing after run of step 'StepRunSourceInstance'. Press enter to continue. ==> amazon-ebs: Waiting for SSH to become available...\r\n==> amazon-ebs: Timeout waiting for SSH.\r\n==> amazon-ebs: Pausing before cleanup of step 'StepRunSourceInstance'. Press enter to continue. ==> amazon-ebs: Terminating the source AWS instance...\r\n==> amazon-ebs: Pausing before cleanup of step 'StepSecurityGroup'. Press enter to continue. ==> amazon-ebs: Pausing before cleanup of step 'StepKeyPair'. Press enter to continue. ==> amazon-ebs: Pausing before cleanup of step 'StepSourceAMIInfo'. Press enter to continue. Build 'amazon-ebs' errored: Timeout waiting for SSH.\r\n==> Some builds didn't complete successfully and had errors:\r\n--> amazon-ebs: Timeout waiting for SSH.\r\n==> Builds finished but no artifacts were created.\r\n```\r\n\r\nPacker should either not accept keys with passphrase or let users to provide it interactively and from command line:\r\n\r\n```\r\n$ packer build -passphrase \"XYZ\" ec2.json\r\n```"}}