I have a script that I want to launch upon a successful SSH session.
So far I have this working by placing the path to my script and the script name in the .bash_profile file.
The script that I have written is text menu driven with multiple choices for the user.
One of the options is quit/exit, which I need (once selected) to exit the script and log-out user from the SSH session.
Is this possible?
I've not been able achieve this as of yet. Exiting the script is easy enough but no matter what I try I always end up with a command line prompt, which in this instance, we are trying to avoid.
Thanks In Advance,
Dan.
ForceCommandoption in thesshd_configfile (that would be for all users though).