ssh -X root@localhost "emacsclient -c"
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
emacsclient: could not get terminal name
I have googled but i can't find the solution to solve it.
Update: I thought that emacs client (on local machine) connect to emacs server (on remote machine) so that emacs client can edit file on local machine. But it doesn't seem to work that way...