{"id":7554,"date":"2017-09-13T14:24:14","date_gmt":"2017-09-13T12:24:14","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=7554"},"modified":"2017-09-13T14:24:14","modified_gmt":"2017-09-13T12:24:14","slug":"ssh-y-fails-moaning-x11-forwarding-request-failed-on-channel-0","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2017\/09\/13\/ssh-y-fails-moaning-x11-forwarding-request-failed-on-channel-0\/","title":{"rendered":"&#8220;ssh -Y&#8221; fails moaning &#8220;X11 forwarding request failed on channel 0&#8221; \u2013 solved!"},"content":{"rendered":"<blockquote><p>$ ssh -v -Y REMOTE_HOST<br \/>\n[&#8230;]<br \/>\ndebug1: Requesting X11 forwarding with authentication spoofing.<br \/>\ndebug1: Requesting authentication agent forwarding.<br \/>\nX11 forwarding request failed on channel 0<\/p><\/blockquote>\n<p>I looked around and I found this article:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.cyberciti.biz\/faq\/how-to-fix-x11-forwarding-request-failed-on-channel-0\/\">https:\/\/www.cyberciti.biz\/faq\/how-to-fix-x11-forwarding-request-failed-on-channel-0\/<\/a><\/li>\n<\/ul>\n<p>The article advises to edit \/etc\/ssh\/sshd_config on the remote system:<\/p>\n<blockquote><p>$ sudo vi \/etc\/ssh\/sshd_config<\/p><\/blockquote>\n<p>and to add these lines:<\/p>\n<blockquote><p>X11Forwarding yes<br \/>\nX11UseLocalhost no<\/p><\/blockquote>\n<p>The remote sshd needs reloading, and because the remote system uses systemd, this is how:<\/p>\n<blockquote><p>$ systemctl restart sshd<\/p><\/blockquote>\n<p>Now after a new &#8220;<em>ssh -Y<\/em>&#8221; I can start <em>xeyes<\/em> and it gets displayed on my PC&#8217;s Cygwin\/X server.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ ssh -v -Y REMOTE_HOST [&#8230;] debug1: Requesting X11 forwarding with authentication spoofing. debug1: Requesting authentication agent forwarding. X11 forwarding request failed on channel 0 I looked around and I found this article: https:\/\/www.cyberciti.biz\/faq\/how-to-fix-x11-forwarding-request-failed-on-channel-0\/ The article advises to edit \/etc\/ssh\/sshd_config on the remote system: $ sudo vi \/etc\/ssh\/sshd_config and to add these lines: X11Forwarding yes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[82],"tags":[],"class_list":["post-7554","post","type-post","status-publish","format-standard","hentry","category-cygwin"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1XQ","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=7554"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7554\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=7554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=7554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=7554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}