question

VikramPonraman-6752 avatar image
0 Votes"
VikramPonraman-6752 asked VikramPonraman-6752 answered

Unable to login linux vm

Hi Team,

I am unable to login linux VM and getting error as "Access denied"

I am able to log in using the Service Administrator account however unable to log in using a co-administrator, a directory user who is a part of the role assignment for the VM.

Kindly suggest.

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @VikramPonraman-6752 ,

after the deployment of a VM only the user account specified during the "Create VM wizard" is able to login.
If you want other users to be able to login you have to add the users in the VM OS and give the right permissions to login via SSH.

For login with a AAD account you need to install an extension before: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/login-using-aad#install-the-azure-ad-login-vm-extension


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VikramPonraman-6752 avatar image
0 Votes"
VikramPonraman-6752 answered

Hi Andreas,

Thanks for the reply.

The extension was already installed while creating a VM still the same issue.

Tried with the same format however getting access denied error

ssh -l azureuser@contoso.onmicrosoft.com 10.11.123.456

Which is not redirecting to the device log-in page as mentioned in the document.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.