I have a problem with my ubuntu vm.
When I tested my application th ssh authentication worked fine with this image:
After that I tried with ubuntu image:
And I get this:
Permission denied (publickey). I checked with password authentication and the authorized_keys file does not contain the key (But I don't know why).
The very wierd thing is when I tried to create an instance on Azure UI with the same key then everything works fine.
Any idea why i get this?
Make sure that the sha thumbprint you're posting to the Azure API is uppercase. This process is handled by cloud-init on Ubuntu and the thumbprint you've posted is saved in /var/lib/waagent/ovf-env.xml. Later DataSourceAzure.py will try to convert the crt file /var/lib/waagent/{thumbprint}.crt to public key, where {thumbprint} comes from ovf-env.xml. But the crt file it is trying to convert is always retrieved with an upper-case name. Check this line in /var/lib/boot.log , {thumbprint} will be upper-case:
Public cert with thumbprint: {thumbprint} was retrieved.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.