This is just a bad idea that I just had.
Is there a way create users accounts on the fly?
Say I have a Ubuntu vm created, and I want to give a bunch of people access. But for whatever reason I don't particularly care about what they do with it.
How can I set it up that when user A ssh into the vm the user's account will automatically be created?
and yes, I know in theory, I could just create a guest account and share that with the people that need access. but then a bunch of people will be sharing the account and I also want to log what everybody did so having them on the same account would make it very difficult.
and yes, this is a very bad idea.
user A ssh into the vm the user's account will automatically be created
....if the account is not created beforehand, the user won't be able tossh
(login)..you need to create the potential accounts before they can login and use..