Skip to content

Commit

Permalink
Fix hostkey in cloud-init config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xEAB committed Jul 28, 2024
1 parent f79b98b commit 929eb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/hcloud-build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ cloudConfigFile="./cloud-config_${serverName}.yaml"
echo '#cloud-config'"
ssh_deletekeys: true
ssh_keys:
ed25519_private: \"${sshHostPrivateKey}\\n\"
ed25519_private: \"${sshHostPrivateKey}\\\\n\"
ed25519_public: \"${sshHostPublicKey}\"
runcmd:
- sed -i 's!#HostKey /etc/ssh/ssh_host_ed25519_key!HostKey /etc/ssh/ssh_host_ed25519_key!' '/etc/ssh/sshd_config'
Expand Down

0 comments on commit 929eb83

Please sign in to comment.