X11 connection error in Mac
[This article was first published on One Tip Per Day, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
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 asWant to share your content on R-bloggers? click here if you have a blog, or here if you don't.
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:
ForwardX11Timeout 596h
2. use “ssh -Y ”, instead of -X, as it may not trigger the untrusted auth timeout.
2. use “ssh -Y
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 about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.