Disable password login for specific users

Posted on

Hello,
all my RHEL machines are joined to AD. SSH login is allowed to a specific AD group and managed by PAM. Every allowed users can authenticate itself either password or SSH keys. Now I'd like to allow a specific user to login only with SSH keys and disable, only for him, password login method.

How can I achieve it?

Thanks,
Fabio

Responses