X11 connection error in Mac

March 11, 2015
By

(This article was first published on One Tip Per Day, and kindly contributed to R-bloggers)

Typically, I log into my remote server/cluster via “ssh -X” and from there launch R program for plotting. But it always shows an error as

unable to open connection to X11 display ”

after a while, when you want to call functions such as plot(). 

This is very annoying. So that I have to exit the server and re-login again. 

Does this sound familiar for you?
Here is the solution I found via website below:
http://b.kl3in.com/2012/01/x11-display-forwarding-fails-after-some-time/
Two ways to solve this:

1. add the following line to the Mac client’s /etc/ssh_config:

ForwardX11Timeout 596h
2. use “ssh -Y ”, instead of -X, as it may not trigger the untrusted auth timeout.

To leave a comment for the author, please follow the link and comment on their blog: One Tip Per Day.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)