Why would you need to modify PAM for SSH on port 22 but not SSH over TLS?
No one gets a shell until they get through your RBAC/ABAC solution
> Why would you need to modify PAM for SSH on port 22?
I don't believe you have an answer.
How do you intend on implementing those without Linux PAM or additional backend services??