I'vetried that earlier, using a mounted directory and compile and deploy via this.
Another option is to use X-server or even Remote Desktop.
From my experience the second option is faster as the compilation works local.
But at the end I work local :)