Re: [SOLVED] X11 forwarding request failed on channel 0
Posted by pschaff on 2012/1/5 3:03:09
Exactly as you have done. Just reply with [SOLVED] (or [RESOLVED] if more appropriate) in the subject, as explained in
Readme First, and a moderator should come along and mark the head of the thread on your behalf. The current brain-damaged forum software does not allow a user to do so.
Edit: I see
Alan beat me by seconds.

Re: [SOLVED] X11 forwarding request failed on channel 0
Posted by AlanBartlett on 2012/1/5 3:02:48
Thank you for reporting back with the solution.
Quote:
Edit. How do I change the topic heading of OP to [SOLVED] ?
An ordinary user does not have that ability.
We recommend exactly what you have done -- add [SOLVED] or [RESOLVED], as appropriate, to your most recent posting. In due course a moderator will notice and make the edit, on your behalf, to the opening post's subject line.
Re: X11 forwarding request failed on channel 0 [SOLVED]
Posted by bluegroper on 2012/1/5 0:22:02
Bingo.
The problem was caused by ssh client (PCLOS), NOT the sshd server (CentOS).
Thx for clues.
Edit. How do I change the topic heading of OP to [SOLVED] ?
Re: X11 forwarding request failed on channel 0
Posted by bluegroper on 2012/1/4 9:46:45
Quote:
TrevorH wrote:
What client are you using on the remote end?
PCLinuxOS, with OpenSSH_5.9p2, OpenSSL 1.0.0e 6 Sep 2011
Re: X11 forwarding request failed on channel 0
Posted by TrevorH on 2012/1/4 9:40:25
What client are you using on the remote end?
Re: X11 forwarding request failed on channel 0
Posted by bluegroper on 2012/1/4 9:37:00
Quote:
pschaff wrote:
I'd set that to "no" and do the same for other X11 parameters that show a default of "yes" in the comments.
Tried that too, then service sshd restart, but remote login still throws the irritant error.
Any more suggestions ?

Re: X11 forwarding request failed on channel 0
Posted by pschaff on 2012/1/4 2:50:09
Quote:
bluegroper wrote:
/etc/ssh/ssh_config: ForwardX11Trusted yes
I'd set that to "no" and do the same for other X11 parameters that show a default of "yes" in the comments.
Re: X11 forwarding request failed on channel 0
Posted by bluegroper on 2012/1/3 21:39:01
# grep X11 /etc/ssh/*_config
/etc/ssh/ssh_config:# ForwardX11 no
/etc/ssh/ssh_config:# If this option is set to yes then remote X11 clients will have full access
/etc/ssh/ssh_config:# to the original X11 display. As virtually no X11 client supports the untrusted
/etc/ssh/ssh_config: ForwardX11Trusted yes
/etc/ssh/sshd_config:X11Forwarding no
/etc/ssh/sshd_config:#X11Forwarding yes
/etc/ssh/sshd_config:#X11DisplayOffset 10
/etc/ssh/sshd_config:#X11UseLocalhost yes
Re: X11 forwarding request failed on channel 0
Posted by pschaff on 2012/1/3 11:52:20
What does the following show?
grep X11 /etc/ssh/*_config
[SOLVED] X11 forwarding request failed on channel 0
Posted by bluegroper on 2012/1/3 11:40:40
Hi forum
I have a freshly installed CentOS 5.7 server packages only.
No GUI, cli only.
When logging in from console, all works as expected.
But when using remote ssh login, I keeps getting the error message.
X11 forwarding request failed on channel 0
Seems to cause no bother, just a tad untidy and annoying.
Already tried setting the following in /etc/ssh/sshd_config but it seems no help or not relevant.
TIA's for any tips or clues to tidy this up.
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=37&topic_id=35053