I am developing an application which would require me to execute a bash script on a remote server when my users give me a command through a web interface.
I need suggestions on how I can run a bash script on a remote server when I get a command on my main application server.
P.S. The bash script will need to do some tasks which only a root user can do, like, restart NGINX.