Ubuntu 22.04 - Need to integrate the Linux Ubuntu VM with Azure AD based SSH Login

Mahesh Subramanian 30 Reputation points
2023-08-08T18:06:21.83+00:00

Hi All,

I tried to install Azure AD based SSH Login plugin and turned on System Identity for my Linux Azure Ubuntu Machine. However I am still unable to login to the Linux Machine with my AD ID. Can some body help me in this regard?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay-MSFT 17,956 Reputation points Microsoft Employee Moderator
    2023-08-09T10:29:00.8133333+00:00

    @Mahesh Subramanian

    Thank you for posting your query on Microsoft Q&A. From above description I could understand that you are trying to Enable Azure AD login for a Linux VM in Azure.

    Please do correct me by responding in the comments section if this is not the case.

    In order to troubleshoot this issue kindly follow the given steps:

    • In Azure AD navigate to Enterprise application > clear all filters > Look for Azure Linux VM Sign-In:

    User's image

    • Click on the application and look for signin logs and see if there are any errors with recent sign in.
    • The errors could be Couldn't retrieve token from local cache, Access denied: Azure role not assigned further troubleshooting needs to be driven based upon the error.
    • If you don't find above application within Enterprise application then navigate to the VM > Overview > Extensions + applications and validate if it has AADSSHLoginForLinux :

    User's image

    • Also you may check if you see SSH using Azure CLI (only applicable with public IP), if yes then select it and it would run some validation checks, if you see any errors then those are needed to be cleared out before attempting a connection.

    User's image

    -

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.