I'm trying to connect to a remote Emacs server. I created the server with server-use-tcp
set to t
so a connection file was created. I inspected the connection file and found out that it contains the IP and address socket port, the PID and an auth token
127.0.0.1:41507 6843
<SECRET>
and then I
- copied (via scp) the connection file to my local pc
- forwarded the server port vie
ssh -L ssh -L 41507:127.0.0.1:41507 remote
and now when I do
emacsclient -f ~/.emacs.d/server/server test-buffer
The buffer is really opened in the remote server process.
However, I cannot find a way to make emacsclient
create a frame. If I use -c
I get
Waiting for Emacs...
*ERROR*: Display :0 can't be opened
and with -t
it just hangs, does not even print Waiting for Emacs
.
I know similar questions have been asked, but I'm trying to do this without TRAMP, because I'm mostly interested in the fast access time and processing resources on the remote server.