Sometimes I get really silly ideas.
This time, the idea is to deliver an easter egg for anyone who decides to try and connect to my server via SSH. Doing so will run a program, such as easteregg.sh, which can provide something like a "hacking" minigame.
However, I have absolutely no idea how to do this! Obviously, such a thing would need to be unobtrusive to actual server admins trying to log in, so there'd need to be some way to distinguish that. Then there's the matter of actually triggering a program to run. Not to mention security: certainly don't want guest users to potentially access server files!
With all that in mind, is such a thing even remotely possible, or is it really just a stupid idea?