Reputation: 18810
I used to be a comfortable emacs user and for close to 10 years I completely got away from using emacs (I know its a shame) but I have a wage memory of setting something in .emacs
to open remote files in a server via local emacs.
Just to make the scenario clear: Login to a remote server (ssh) -> emacs somefileInRemoreServer.file & File get open using the local version of emacs.
My questions are:
I have both mac and ubuntu on mac I use Aquamacs. It would be a great help if I can get instructions on both versions.
Upvotes: 1
Views: 921
Reputation: 3811
I'm not sure whether you want to ssh prior to using emacs or ssh using (in) emacs.
If you want to let emacs do all the work check out the links added by phils, TRAMP mode is the way to go for remote editing IN emacs.
If you want to use ssh to mount a remote filesystem (resulting in "local" editing with emacs) you should check out sshfs (man, wiki).
I think it comes with pretty much any of the current distros (or can be installed easily otherwise). It is a fuse extension which allows to mount a remote directory to a local one without any further requirements on the remote side than ssh.
I do like TRAMP for editing one or two files but using sshfs is great for working on a whole project directory which is placed remotely and which you do not want to sync using another method.
Upvotes: 1