I have a setup of systems, where each system has multiple users but only one user is allowed to login to a system at a time through SSH.
I am using "passwd -l/-u" command to lock and unlock users, and allow only one user at a time.
What I need is to tell the other users trying to SSH to a system why they cannot SSH. Currently when the user account is locked and they cannot SSH they only get "Connection Refused" message. I want to be able to edit this message to tell them "Your account is locked and you cannot login before xxxxxxx time"
What are the possible ways I can achieve this. I have tried googling for this but without any luck.