https://github.com/hashicorp/packer/issues/11656#issuecomment-1076175764
found my problem. packer generates temporary ssh-rsa keys which are disallowed by the 22.04 default SSH key policy. ** Changed in: openssh (Ubuntu) Status: New => Invalid ** Changed in: cloud-init Status: Incomplete => Invalid ** Bug watch added: github.com/hashicorp/packer/issues #11656 https://github.com/hashicorp/packer/issues/11656 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968360 Title: jammy daily won't accept EC2 publickey (suspect cloud-init failure) To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1968360/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs