Use case:
I would like to host a console application I built on an EC2 instance on AWS and give very strict limited access to the people who will connect to it:
- They must not be able to access the shell or execute any command on the machine
- They must not be able to use port forwarding
- They must not be able to copy or read anything from that machine, especially not environment variables
- They are only allowed to use that console application
My solution:
- Create a user:
- I replace its shell by the console application so the user can only access to that and nothing else
- Disable port forwarding
I'm not sure if that would be enough to secure the machine. That's why I'm asking here some advice or confirmation that this will work and will be 100% secure.