AD Auth No Join Linux VM

Sapan Ganguly 0 Reputation points
2023-11-14T17:00:02.2433333+00:00

I followed this tutorial and it very nearly works.

https://learn.microsoft.com/en-us/entra/identity/domain-services/ad-auth-no-join-linux-vm

Upon completing this configuration I can get a valid result when I do getent passwd username or id username but if I try ssh username@localhost I get a permission denied error.

What am I missing?

Windows for business Windows Client for IT Pros Directory services Active Directory
Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adam Zachary 2,936 Reputation points
    2023-11-15T01:27:32.0833333+00:00

    Hi Sapan,

    The issue you're encountering with SSH and the "permission denied" error, it appears that the problem may be related to the configuration of SSH authentication methods, especially in the context of Azure AD integration.

    Here are some troubleshooting steps you can follow to resolve this issue:

    Verify SSH Configuration for Password Authentication:

    Check Azure AD Role Assignment: Ensure that your Azure AD account has been assigned the "Virtual Machine Administrator Login" role for the VM. You can do this by checking the VM's Access control (IAM) settings in the Azure portal. This role is necessary for proper permissions and access control.

    Reset SSH Public Key for Azure AD Account: If the above steps don’t resolve the issue, consider resetting the SSH public key for your Azure AD account. Generate a new SSH key pair and add the public key to your Azure AD account. Then, attempt to log in using SSH with this new key pair.

    Hope that helps!

    0 comments No comments

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.