I would love to find a way to allow my program that runs on FreeBSD 14.3 host, to execute binary or shell-script in a Bhyve Linux VM. The binary does not need to be executed with root. The binary need to be executed per requests so I cannot do a periodic run.
Few ideas I come up with, but not sure if I am over-complicating things or doing it in a non-secure way.
Few ideas I come up with, but not sure if I am over-complicating things or doing it in a non-secure way.
- Establish a ssh connection from my host to the VM and use ssh to execute
- Have a simple web-server in the VM to listen on the requests from my host program, then triggers the execution, e.g. (nginx)