public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* X11 forwarding request failed on channel 0
@ 2019-09-12 15:04 Haanraadts, Mark (HBO) via cygwin
  2019-09-12 16:12 ` Brian Inglis
  0 siblings, 1 reply; 5+ messages in thread
From: Haanraadts, Mark (HBO) via cygwin @ 2019-09-12 15:04 UTC (permalink / raw)
  To: cygwin

I have a problem with remote ssh sessions to corporate Red Hat 6 servers and X11 forwarding. Xclock works perfectly fine on my local CYGWIn install. On a remote server I get:
$ xclock
Error: Can't open display:

Here's the debug shell logfile:

debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
Authenticated to <host>.
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting mailto:no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: exec
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: x11_get_proto: /usr/bin/xauth  list :0.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 100 id 0
X11 forwarding request failed on channel 0
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Last login: Wed Sep 11 17:01:50 2019 from 10.218.16.112

Did a lot of Googling and I already changed this in /etc/ssh/sshd_config
X11Forwarding yes
AddressFamily inet
X11UseLocalhost no

Here's how I'm starting X-Windows
startxwin &
sleep 10
export DISPLAY=:0.0
xhost +
xterm -sb -sl 5000 -geometry 168x17+380+0 -T "XTERM 1" &
xterm -sb -sl 5000 -geometry 168x17+380+315 -T "XTERM 2" &
xterm -sb -sl 5000 -geometry 168x16+380+600 -T "XTERM 3" &



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread
* X11 forwarding request failed on channel 0
@ 2013-06-18 16:28 Andrew DeFaria
  2013-06-18 23:06 ` Jon TURNEY
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew DeFaria @ 2013-06-18 16:28 UTC (permalink / raw)
  To: cygwin

Lately I noticed the following error when attempting to ssh from my 
Ubuntu (13.04) systems to my Cygwin system with X11 Forwarding turned on:

X11 forwarding request failed on channel 0

Any idea of how I can fix this?

Not sure if this is a Cygwin issue (but it does involve ssh) or a 
Cygwin/X issue.
-- 
Andrew DeFaria <http://defaria.com>
If you knees bent the other way, what would chairs look like?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-12 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-12 15:04 X11 forwarding request failed on channel 0 Haanraadts, Mark (HBO) via cygwin
2019-09-12 16:12 ` Brian Inglis
  -- strict thread matches above, loose matches on Subject: below --
2013-06-18 16:28 Andrew DeFaria
2013-06-18 23:06 ` Jon TURNEY
2013-06-19  2:02   ` Andrew DeFaria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).