Sign in
Categories
Migration Mapping Assistant Your Saved List Partners Sell in AWS Marketplace Amazon Web Services Home Help

ssh using private key still prompts for password

  • By SeboLabs
  • on 01/21/2016

Recently I've been using ami-bc8131d4 for lab purposes.
After I've built a custom image with Packer using above ami as a source and then created an instance using Terraform I couldn't connect as root with associated key pair. I've been asked for password.
I got it working by injecting 'PasswordAuthentication no' to sshd_config and public key to authorized_keys while building my image.
Anybody had an issue like that and knows the reason of this behaviour?


There are no comments to display