Skip to content

Commit

Permalink
fix: use "pem" format for local SSH key to be usable in MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <[email protected]>
  • Loading branch information
displague committed Jun 13, 2024
1 parent d3fe3e2 commit 7d11b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sshkey/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "equinix_metal_ssh_key" "ssh_pub_key" {
}

resource "local_file" "cluster_private_key_pem" {
content = chomp(tls_private_key.ssh_key_pair.private_key_openssh)
content = chomp(tls_private_key.ssh_key_pair.private_key_pem)
filename = pathexpand(format("~/.ssh/%s", local.ssh_key_name))
file_permission = "0600"
}

0 comments on commit 7d11b16

Please sign in to comment.