title: Automatic backup of emacs file edit on a server
body: <p>I have a large repository of C++ code on a remote cluster (linux OS). When I need to work on this code from my home computer (Ubuntu OS), I try to access these codes through emacs on X windows. However the X window connection is very slow making the editing a painful process. So I sometimes move files manually between my local drive and remote cluster to edit the files. My question is: is there a way to configure my local emacs, such that when I edit the file in my local space, it would automatically be backed up in the cluster where it can then be compiled?</p>
  
  <p><strong>UPDATE:1</strong></p>
  
  <p>I installed TRAMP and it works well for servers that can be connected directly. However I also have servers which can be connected only when I activate VPN. How to provide the VPN information to TRAMP to connect to this server?</p>
  
  <p>The other question I had was how to stop the TRAMP when it waits for prompts from remote shell without having to kill the whole emacs buffer.</p>