I originally designed M-x SAS for running on remote machines. Open up a telnet or equivalent window on the remote machine and run a remote emacs in that window. Then work as you have been working.