title | description | ms.date | ms.custom | ms.service | ms.collection | ms.author | author | ms.reviewer |
---|---|---|---|---|---|---|---|---|
Cloud-init writes virtual machine's host keys as ec2 |
This article describes an issue in which Cloud-init writes virtual machine's host keys as ec2. It provides a workaround. |
10/10/2020 |
sap:VM Extensions not operating correctly |
virtual-machines |
linux |
genli |
genlin |
Timothy.Basham, Scott.L.Roberts |
Original product version: Virtual Machine running Linux
Original KB number: 4561944
Cloud-init intermittently writes SSH Host keys to console as 'ec2'. Azure doesn't use ec2 instances.
Cloud-init uses the SSH module to call the write-ssh-key-fingerprints helper script in the final stage. The helper logged these values setting the program name to 'ec2'. The name of the cloud-init project was 'ec2-init' before changing to a platform-agnostic name. Some code paths still include the old name.
Ignore 'ec2' logs during troubleshooting. You'll find more information in the Bug description article.
[!INCLUDE Azure Help Support]