Closed Jnchi closed 5 years ago
/etc/pam.d/sshd
+auth [success=1 default=ignore] pam_aad.so client_id= resource_id= tenant= required_group_id=
+auth required pam_permit.so
-@include common-auth
-#@include common-auth
ssh jnchi@10.0.3.65
Enter the following code at https://aka.ms/devicelogin : FB8TD984U
Please hit enter after you have logged in.
packet_write_wait: Connection to 10.0.3.65 port 22: Broken pipe
sudo /usr/sbin/sshd -ddd -f /etc/ssh/sshd_config
[ . . . TRUNCATED . . . ]
PAM: pam_setcred(): Permission denied
/*
* Attempt password authentication via PAM
*/
int
sshpam_auth_passwd(Authctxt *authctxt, const char *password)
{
Source: openssh/auth-pam.c
Source:
pam_unix
Bugs: https://github.com/CyberNinjas/libnss-pool/issues/4 Bugs: https://github.com/CyberNinjas/pam_aad/issues/22
See also: https://github.com/donapieppo/libnss-ato