Azure / Azure/azure-linux-extensions
AADSSHLoginForLinux Extension giving permission denied ( public key) error on Azure Scale Set.
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
Hi All,
I recently added AADSSHLoginForLinux Extension on my VM Scale Set. I assigned myself the role of Virtual Machine Administrator and Virtual Machine user also at the resource level (vmss) as well as the resource group level also ( suggestion from issue #63340). But when i am trying to ssh into the vm i am getting below error :
**@10.130.xxx.xxx: Permission denied (publickey).**
Below is the az cli version and ssh extension version i am using.
azure-cli 2.40.0
core 2.40.0
telemetry 1.0.8
Extensions:
ssh 1.1.2
I am running Ubuntu 18.04 as the OS. I am able to ssh into my virtual machines using public key but when i am trying to ssh using
AADSSHLoginForLinux, it is failing.
Any suggestion would help a lot.
Below are the logs from /var/log/auth.log:
azureuser@RUNNERTEST000000:~$ tail -f /var/log/auth.log
Sep 8 14:03:38 RUNNERTEST000000 sshd[6999]: Invalid user xxxxx from 140.231.xxx.xxx port 32772
Sep 8 14:03:39 RUNNERTEST000000 sshd[6999]: Connection closed by invalid user xxxx 140.231xxx.xxx port 32772 [preauth]
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the AADSSHLoginForLinux extension behavior alongside the reported /var/log/auth.log entries, Ubuntu 18.04 environment, Azure CLI 2.40.0, and SSH extension 1.1.2. Done means identifying why the AAD user is treated as invalid during public-key authentication and documenting or correcting the extension behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python, ubuntu
- Domain
- authentication, cloud, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100