I have a user that needs to connect to a remote machine M
(via ssh) and run one in a fixed set of commands (say N
in total).
These commands rely on python, libraries thereof, and privileged access to the network (which machine M
has).
Are there default strategies to limit the linux user shell only to the execution of these N
commands, without any possibility of:
- further access to the fs
- reading the content of the commands themselves
- acquiring privileged access to the network
- and alike
In other words, what are default strategies to prompt a limited console to the user after they login, allowing, e.g., only numbers between 1
and N
as inputs?