-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packer v1.8.0 can't SSH to AWS Ubuntu 22.04 #11733
Packer v1.8.0 can't SSH to AWS Ubuntu 22.04 #11733
Comments
Could you try one of the workarounds from here? #11656 |
This workaround worked: #11656 (comment) I'll keep the issue open because I still can ssh with my normal keys and packer can't. |
Probably same root cause as #8609 |
For Ubuntu 22.04, OpenSSH was updated to v8.x and rsa host keys are disabled by default. Either a client key using ecc needs to be used, or my temp workaround, was to renable rsa on the host side. |
at least for |
Not working though for local ISO builds. See my comment here: #11656 (comment) |
I also tried this with the latest Nightly build (https://github.com/hashicorp/packer/releases/tag/nightly) as of today, and it's still the same problem with |
This problem comes from here. golang/go#49952 |
@yukoba Thanks for posting that. I saw that issue in another thread, and it seems pretty core to Packer itself. I've tried to workaround this issue locally with |
I found a temporary workaround which should work for This is the magic sauce: https://github.com/chef/bento/blob/118ad132f6bd7c09cbf40b4933281d32dfe139fe/packer_templates/ubuntu/http/user-data#L9-L11 Basically, you need to stop SSH during the Subiquity install process so that Packer doesn't freak out, and continues when SSH connectivity is restored. |
Same issue in GCP with Ubuntu 22.04, but |
Is it possible to get a new nightly release? I'm seeing this error with password auth as well. |
Thanks for all the help in communicating various workarounds. The latest Packer SDK has been patched with the Golang crypto/ssh fix . We will be rolling out the fixes to each individual plugin as the changes get merged. Once all plugins have been updated we I’ll work to get a release of Packer core out with the update crypto fix. For those using HCL pinning each plugin to the latest available release should be enough to get the fix in place. |
Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
packer version:
Packer v1.8.0 (running on ubuntu-20.04 AMD64)
command: PACKER_LOG=1 packer build -on-error=ask ubuntu-22.04.json
(ubuntu-22.04.json is in the bottom of this github issue)
trying to use packer with Ubuntu 22.04 AWS AMI, which was released today, does not work. It can't ssh:
from my terminal it works:
This is the packer settings file ubuntu-22.04.json
The text was updated successfully, but these errors were encountered: