If you just want to run a classic (1980s?) style command line execution of SAS like:
cd my_project_directory
sas my_program
Or a little fancier with options on the command line so perhaps something like:
sas -sysin my_program -log my_project_directory/my_program.log -print my_project_directory/my_program.lst
Then you just need to make an SSH connection to you virtual machine to run the command there.
ssh my_sas_host sas ....
But if you are really building a webapp then you might want to setup a SAS application server (in a VM or somewhere else) and communicate with it instead of using command line.