I'm trying to setup an SSH server which, upon an attempted connection with the correct public key, will create a new user account if one does not exist.
On connection I'd like a specific script to run for that user, which upon exiting, would disconnect them.
The point of this is to have a server which will run a specified script for whoever connects, but with their own account for small save-files.
I'm currently running Ubuntu 14.10 with only a CLI.
I'm not particularly worried about security for the machine in-so-much as it will only be used for games, and contains no personal details of my own.
EDIT: While I feel this question would still be useful if answered in its original form, I have found a work-around that suits me for now: Instead of having ssh do all the work of setting up users on the fly, you can set one user to be accessible via ssh, and that user's launch script can be one which manages user accounts, creating them as needed, and then connecting the user to the correct file directory system for their "account".