AD Auth No Join Linux VM

Sapan Ganguly 0 Reputation points

I followed this tutorial and it very nearly works.

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?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,153 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,555 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AdamZachary 2,851 Reputation points

    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