{"id":483,"date":"2014-03-07T10:00:12","date_gmt":"2014-03-07T15:00:12","guid":{"rendered":"http:\/\/devolve.net\/blog\/?p=483"},"modified":"2014-10-23T13:40:04","modified_gmt":"2014-10-23T17:40:04","slug":"enable-x11-forwarding-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/enable-x11-forwarding-on-raspberry-pi\/","title":{"rendered":"Enable X11 Forwarding on Raspberry Pi"},"content":{"rendered":"

The usual suspects failed me last night when the $DISPLAY<\/code> environment variable wasn’t being set after I logged in via SSH to my Pi. The usual suspects being to make sure that the X11 forwarding options were turned on in \/etc\/ssh\/sshd_config<\/code> on the server and in ssh_config<\/code> on the client, or to use the command line options -X<\/code> or -Y<\/code>.<\/p>\n

So I tried logging in again with the debug level turned up (-vvv<\/code>) and saw the message, X11 forwarding request failed on channel 0<\/code>. I had remembered from when this happened to me before that you also need a particular package on the server side to allow X11 authentication, whatever package contains the xauth<\/code> binary. However, it was there and seemed to be working properly.<\/p>\n

The Googles turned up this link<\/a>, which showed that a new option may need to be in your sshd_config<\/code> on a newer version of OpenSSH:<\/p>\n

X11UseLocalhost no<\/pre>\n

I then did a sudo service ssh restart<\/code>, which thankfully is smart enough not to kill your existing SSH session, and logged in again. Finally, I saw <\/p>\n

$ echo $DISPLAY\r\nlocalhost:10.0<\/pre>\n

and once again, all was well with the world.<\/p>\n","protected":false},"excerpt":{"rendered":"

The usual suspects failed me last night when the $DISPLAY environment variable wasn’t being set after I logged in via SSH to my Pi. The usual suspects being to make sure that the X11 forwarding options were turned on in \/etc\/ssh\/sshd_config on the server and in ssh_config on the client, or to use the command […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34,16,17,22],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/483"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=483"}],"version-history":[{"count":3,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/483\/revisions"}],"predecessor-version":[{"id":486,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/483\/revisions\/486"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}