I'm SSHing from my macbook into an ubuntu server. I have emacs installed in both places.

So far I've found 3 ways to deal with this, and none of them are optimal:

  1. run emacs on the ubuntu in the terminal window. This doesn't let me have multiple frames easily.
  2. Run emacs on my mac and access files non-locally through ssh. This is slow (although I have not confirmed that it's actually slower than other options, I guess)
  3. Run an X11 emulator on my mac and use X display forwarding. This seems like a pain, but I'll do it if it's considered the best way.

Is there another option? I'm probably going to run with option 2 until it sufficiently annoys me, I guess.

  • 1
    In method 2, when you say "access files non-locally through ssh", I presume you are talking about tramp?
    – NickD
    Nov 22, 2023 at 3:34
  • @nickD that is correct Nov 22, 2023 at 4:14
  • Option 4: use a remote desktop solution such as VNC,Nomachine,x2go,xpra..., which is what I do (but the machines in question are literally 50 cm apart)
    – rpluim
    Nov 22, 2023 at 8:06
  • I also sometimes use a variant of Option 1: ssh into Linux, then either have multiple terminal frames (C-x 5 2), or run under tmux and run emacslient multiple times in multiple tmux windows
    – rpluim
    Nov 22, 2023 at 8:09
  • option 5. use modern version control and push/pull/sync as necessary
    – nega
    Dec 7, 2023 at 7:20

1 Answer 1


A couple of options:

  • 2a Use tramp with the scp method instead of ssh, it's much faster
  • 4 Mount the remote filesystem locally using some suitable protocol (e.g. smb, nfs, sshfs, etc.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.