This is my face that if a Linux user has a special shell that just prints a mess...

@cks@mastodon.social

This is my face that if a Linux user has a special shell that just prints a message and then exits, and the user logs in via SSH, systemd will still start up a session and auto-start any user .service units set up for this, which will stay running and etc.

Now I really want some way in sshd_config of a Match that checks user shells, so you can block access in sshd directly because apparently this is what's required these days. (With a motd message or something.)