I'd like to prompt a user for some piece of information before they get to their BASH shell when they're logging in via SSH. Ideally, I'd like to execute a script which prompts them for information, check that the information is correct, and then if it is drop them to a shell. So, think:
ssh firstname.lastname@example.org password: xxxx do you agree to the terms and conditions of use? enter yes or no: yes OK, here's your shell: #
Can anyone provide an example of how to do something like this?