Closed devurandom closed 1 year ago
When I change the source
to:
source "hcloud" "TEST" {
image = "centos-stream-9"
location = "fsn1"
server_type = "cpx21"
snapshot_name = "TEST"
ssh_username = "root"
temporary_key_pair_type = "ed25519"
}
then in stepCreateSSHKey packer says "Saving key for debug purposes: ssh_key_TEST.pem", but:
❯ head -n1 ssh_key_TEST.pem
-----BEGIN RSA PRIVATE KEY-----
Also, using invalid values for temporary_key_pair_type
does not cause an error. When I misspell temporary_key_pair_type
itself, I get an error though.
It appears that the hcloud Packer plugin does the creation of the SSH key itself and that is not something done by the SDK. Does https://github.com/hashicorp/packer-plugin-hcloud/blob/main/builder/hcloud/step_create_sshkey.go have to be adjusted to support ed25519 keys and the temporary_key_pair_type
option?
Hello @devurandom, could you please confirm wether version 1.0.5 fixes this issue? See PR #39. FYI @nywilken
Hello @devurandom, could you please confirm wether version 1.0.5 fixes this issue? See PR #39. FYI @nywilken
I can confirm. fixed in 1.0.5
Thank you for confirming @garry-t
Overview of the Issue
Packer with the Hetzner Cloud plugin is unable to connect to the server via SSH.
Reproduction Steps
env PACKER_LOG=1 packer build -debug .
Plugin and Packer version
v1.7.10
Simplified Packer Buildfile
Operating system and Environment details
Gentoo/Linux, Linux 5.18.12, x86-64
Log Fragments and crash.log files