What I want here is a client logging in my website and can execute any Linux command.
Do you think I need a Linux machine running in the back end? And if yes, how will it handle multiple users logging in and executing commands. Will it create instance of each session and executes for it. Just curious how this will work.
For example: “4 users logged in into my website and hence 4 different sessions are created for them. They all sees a Linux terminal. They all send some Linux command and press enter.” I want to simulate this.
I suggest you following things for your project :
- Node.JS — for Backend
- AngularJs — for frontend
- SSH2 npm module
- Mongoose ODM
node.js will help in your project as it fast and asynchronous in nature. it’s fast and compatible.
Angular.js will help you at frontend as it doesn’t render or executes whole HTML it do only a part or view of it, so it becomes hyper fast in nature.
For if you want to use database too. Then my recommendation would be using MONGODB with mongoose as its ODM.
SSH2 wrapper is an advance tool for the purpose you’re looking at.
Note: LAMP has been killed almost by MEAN stack. So using PHP would increase your writing of code as well as task of maintaining it too.