-
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
DigitalOcean Builder Unable to Connect over SSH #10835
Comments
On further investigation, this seems to only occur when using the |
Hi there @tserkov it looks like you are running into the issue captured here #10074 (comment). The latest version Fedora is expecting a different key type. Have you tired using you own private key of the expected type with the build? source "digitalocean" "dobuild" { |
I added Looking at builder/digitalocean/builder.go#L83-L86, builder/digitalocean/step_create_ssh_key#L35, and builder/digitalocean/step_create_droplet#L24 the builder ignores the provided key, so that may be a separate issue. 😅 I do want to point out something I mentioned in the first post -- I am able to use the builder-generated RSA key to ssh into the droplet ( |
I'm going to attribute my ability to manually log in over SSH using the generated temporary RSA key as some local config voodoo, and instead focus on resolving this for the larger community in the PR tagged above by including ECDSA and ED29919 support for the digitalocean builder. |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Overview of the Issue
DigitalOcean builder is unable to connect to Droplet over SSH using its generated private key.
packer build -debug .
allowed me to connect usingssh -i do_web.pem root@{{droplet_ip}}
without any issues.Reproduction Steps
Run
packer build .
with the buildfile below (providing a do_token, of course).Packer version
Packer v1.7.0
Simplified Packer Buildfile
Operating system and Environment details
Reproduced on the following systems:
Log Fragments and crash.log files
PACKER_LOG=1 packer build .
=> https://gist.github.com/tserkov/9d0ec9478527d2a2ec7367cf746859ecErrata
I am also experiencing this issue with Terraform's provisioning (same error message and all).
The text was updated successfully, but these errors were encountered: