Dynamically allow users with OpenSSH?

Jason L Tibbitts III
Wed, 06 Mar 2019 22:30:05 -0000

>>>>> "IT" == Isaiah Taylor <isaiah.p.taylor at
gmail.com> writes:

IT> Does OpenSSH have some sort of callback extensibility for
IT> dynamically allowing or disallowing users based on an external
IT> script or file?

Seems more like the kind of thing you'd do through the PAM stack,
assuming your OS has that.  pam_script seems directly on point if you
want to make decisions based on arbitrary scripting.

Needless to say, PAM can be baroque and is part of the attack surface,
so significant care is warranted.

 - J<