How do i allow users to execute commands via ssh without allocating a psuedo-terminal
- by Dani El
I need to allow users to run a limited set of commands.
But not to allow them to create interactive sessions.
Just like GitHub does.
If you try to ssh without a command it greetings you and close the session.
I can acquire this by using ForceCommand some-script
But getting in some-script i then need to eval user's input.
Perhaps any other NoTTY-like option in sshd_config?
--- UPDATE ---
i'm looking for a pure SSH / Bash solution, not Perl/Python/etc. hacks.