Skip to main content
4 of 6
remove strikethrough
suvayu
  • 1.7k
  • 11
  • 17

I think one of the things unclear from the FAQ is the necessity that both server and client be resolveable from each other. You can see this thread from 2009. That said, this is how I got it to work:

(require 'server)

(setq server-name "sx-test"       ; name of the server
      server-host "192.168.2.198" ; only ip resolution works at home
      server-use-tcp t)

(server-start)                    ; comment out when using --daemon

I started the server like this:

$ emacs -Q -l setup.el

This will give you an Emacs window though. If you do not want that, comment out the (server-start) line, and start Emacs like this:

$ emacs -Q -l setup.el --daemon

Now on the remote machine, copy the cookie as instructed in the FAQ, and start your client like this:

$ emacsclient /ssh:[email protected]:/path/to/foo

Voilà!

suvayu
  • 1.7k
  • 11
  • 17