{"id":7455,"date":"2021-02-10T23:24:32","date_gmt":"2021-02-10T22:24:32","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7455"},"modified":"2021-02-11T12:47:26","modified_gmt":"2021-02-11T11:47:26","slug":"linux-x11-forwarding-with-putty-not-working","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/linux-x11-forwarding-with-putty-not-working\/","title":{"rendered":"Linux: X11 forwarding not working with putty"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7455 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_7455')){$('.twoclick_social_bookmarks_post_7455').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Linux%3A%20X11%20forwarding%20not%20working%20with%20putty\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ayou%20have%20properly%20configured%20putty%20to%20use%20X11%20forwarding%20but%20it%20fails%3F%0D%0A%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/linux-x11-forwarding-with-putty-not-working\\\/\",\"post_id\":7455,\"post_title_referrer_track\":\"Linux%3A+X11+forwarding+not+working+with+putty\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>you have properly configured putty to use X11 forwarding but it fails?<\/p>\n<p><!--more--><br \/>\nTake a look at the sshd log on the server (on ubuntu the systemd unit is ssh) if you got any error like this:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@debdev ~# journalctl -xu ssh\r\n...\r\nerror: Failed to allocate internet-domain X11 display socket.\r\n...\r\n<\/pre>\n<p>This error message means that it tries to use IPv6, but its (however) not working. Maybe IPv6 is disabled&#8230;.<\/p>\n<p>Solution: Verify that<br \/>\n<code><br \/>\nX11Forwarding yes<br \/>\n<\/code><br \/>\nis set and is not overwritten by any per-user basis options. Also, if you use ssh keys, check your ~\/.ssh\/authorized_keys file if the any restrictions about x11 forwarding.<br \/>\n<code><br \/>\n... no-X11-forwarding ...<br \/>\n<\/code><\/p>\n<p>Force sshd to use IPv4. Add the following option before the &#8220;listen&#8221; option to \/etc\/ssh\/sshd_config.<br \/>\n<code><br \/>\nAddressFamily inet<br \/>\n#ListenAddress 0.0.0.0<br \/>\n<\/code><br \/>\nRestart sshd and try to connect.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@debdev ~# systemctl restart ssh\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, you have properly configured putty to use X11 forwarding but it fails?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[89,1528,568,224,630,567],"class_list":["post-7455","post","type-post","status-publish","format-standard","hentry","category-linux","tag-error","tag-failed-to-allocate-internet-domain-x11-display-socket","tag-forwarding","tag-linux-2","tag-putty","tag-x11"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=7455"}],"version-history":[{"count":2,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7455\/revisions"}],"predecessor-version":[{"id":7457,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7455\/revisions\/7457"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}