I can connect to a remote server with Tramp
C-x C-f /ssh:group@remotehost:
and get a plot output window (with ess R). But if I change user
C-x C-f /ssh:group@remote|su:user@remote:
there's no X11 forwarding anymore, i.e. not output window. Here's the error reported in R:
Error in .External2(C_X11, d$display, d$width, d$height, d$pointsize, :
unable to start device X11cairo
In addition: Warning message:
In (function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11 display ''
My ssh config file has ForwardX11 yes
and ForwardX11trusted yes
as described in Tramp manual. Am I missing something in my ssh config file or emacs init file, or is it on the server side?
su
does break X11. Can you use SSH to switch to the other user account? X11 forwarding will just work if you do two steps of SSH each with X11 forwarding enabled, whereas su doesn't do X11 forwarding. – Gilles 'SO- stop being evil' Oct 20 '18 at 7:15group
is allowed to ssh to that server, not useruser
. – Denis Oct 22 '18 at 12:29