@@ -98,8 +98,8 @@ in
9898 systemd.services.fetch-ssh-keys =
9999 { description = "Fetch host keys and authorized_keys for root user";
100100
101− wantedBy = [ "sshd.service" ];
102− before = [ "sshd.service" ];
101+ wantedBy = [ "sshd.service" "waagent.service" ];
102+ before = [ "sshd.service" "waagent.service" ];
103103 after = [ "local-fs.target" ];
104104
105105 path = [ pkgs.coreutils ];
@@ -108,14 +108,14 @@ in
108108 eval "$(base64 --decode /metadata/CustomData.bin)"
109109 if ! [ -z "$ssh_host_ecdsa_key" ]; then
110110 echo "downloaded ssh_host_ecdsa_key"
111− echo "$ssh_host_ecdsa_key" > /etc/ssh/ssh_host_ecdsa_key
112− chmod 600 /etc/ssh/ssh_host_ecdsa_key
111+ echo "$ssh_host_ecdsa_key" > /etc/ssh/ssh_host_ed25519_key
112+ chmod 600 /etc/ssh/ssh_host_ed25519_key
113113 fi
114114
115115 if ! [ -z "$ssh_host_ecdsa_key_pub" ]; then
116116 echo "downloaded ssh_host_ecdsa_key_pub"
117− echo "$ssh_host_ecdsa_key_pub" > /etc/ssh/ssh_host_ecdsa_key.pub
118− chmod 644 /etc/ssh/ssh_host_ecdsa_key.pub
117+ echo "$ssh_host_ecdsa_key_pub" > /etc/ssh/ssh_host_ed25519_key.pub
118+ chmod 644 /etc/ssh/ssh_host_ed25519_key.pub
119119 fi
120120
121121 if ! [ -z "$ssh_root_auth_key" ]; then