The only way I can even see it helping is if the loopback interface is down, or localhost does not resolve correctly. Re: 'X11 forwarding request failed on channel 0' Wed Sep 17, pm jojopi wrote: "ssh -X" has never worked for me—I always need to use "ssh -Y".
And some folks need to stop being fanboys and see the forest behind the trees. One of the best lines I've seen on this board lately. Re: 'X11 forwarding request failed on channel 0' Wed Sep 17, pm Here's a workaround - developed and working on OSX with XQuartz, but should be applicable to other environments.
First, get and compile "socat". The above location was specifically recommended for OSX. This can be fixed by reconfiguring the X server, but the details are messy.
Instead, we use socat to redirect a port to the socket file. Setup to run socat from some directory; I used the "doc" subdirectory of the socat distro. There might be other workarounds, but this seems to me to be a fixable bug in socat. Code: Select all..
Re: 'X11 forwarding request failed on channel 0' Thu Sep 18, pm Update: It looks like rebooting the Pi the one running sshd fixes the problem. Are you doing anything with sudo? Sudo can brake pipes March 29th, 3. Re: ssh error "X11 forwarding request failed on channel" Thanks for helping. So I don't know if X client is installed. Could you explain this to me?
The only things I have installed in this regard beyond what comes packaged with a standard Ubuntu I have the same issue whether ufw on the server is switched off or on. When ufw is on I have set up a rule to allow communication on channel But even with ufw switched off on both client and server machines I have the same problem.
I have done nothing with sudo other than install the openssh-server. March 30th, 4. Re: ssh error "X11 forwarding request failed on channel" Sounds like the server doesn't have the X infrastructure installed which is standard for Ubuntu Server. See if running "sudo apt-get install xorg" on the server solves the problem. One can fix that by setting. I came across this question after a run in with an sshd-xauth bug nearly a decade old. Two solutions are reported, the first bypassing xauth , the second addressing the bug. I also posted this solution as an answer another question.
This solution is close to systempoet 's solution above , although that alone was not enough.
One important point to note after making the configuration changes is that you'll have to kill sshd so that it picks up the changes:. Home Questions Tags Users Unanswered.
Problem solved: I was editing file /etc/ssh/ssh_config instead of /etc/ssh/ sshd_config. I type the following command from OS X Unix terminal to login into ssh -X -o options -A -p 22 [email protected] How do I fix “X11 forwarding request failed on channel 0” on Linux or Unix-like systems?.
Asked 5 years, 9 months ago. Active 4 months ago. Viewed 60k times. How can I get rid of these messages? Method 1 - install xauth The server you're remoting into is complaining that it cannot create an entry in the user's. X11Forwarding no Of the 3 methods I generally use 2, because I'll often want X11Forwarding on for most of my servers, but then don't want to see the X Security It's generally ill-advised to run with ForwardX11 yes on at all times.
X Forwarding. Nifle 2 2 gold badges 5 5 silver badges 15 15 bronze badges.
Can you help me with unix. For the record, I received that message when I was trying to run X clients on the remote server.
I managed to fix it with your first suggestion: install xauth. This worked for me the server already had xauth installed. This appeared to solve my issue, but I don't understand why, which is concerning.