delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/12/09:38:17

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; q=dns; s=
default; b=dEGZK1Ey75ZCFrr8l+esrd0SEdwWXNe8p91piQdlEmh7hGw1HixZi
4cGcZpv5RxUUlGGewdqzttsJl4MmjunKthwNz6n8mtqnoxH6KAmfb9mmRnspRlSf
qoozcvVATRJq3MIsaAVeKvESQ+boTWDDQ3ONT5gGPksFq9ETmcBT8I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; s=default;
bh=sjai4TfzHLrZB3pem9IVj7bmREU=; b=vQeQ41pRv7BkaNCf/F9xjPQzTddu
zEQFzZF6XKbdbB7l6awLHOAOQa18rSWKSCvJqQ8BEEopScr0VycNnQL202Ie+4Vd
zmvJMS/73RTlZAf9PTgNCZ3TFKsDhGYfp5fHG99hwKgQeCSKGcVrX+ZZLSQCNz0y
5MLm0+uAQGT9+c8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=interactive, DISPLAY, channel, authentication
X-HELO: mx0a-0020c901.pphosted.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hbo.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=proofpoint; bh=MWyJx/1Tu3pKy+0dwazJpgLv9T7dH+N9tREbacsQutI=; b=K6AaRXHtmp+wi7kIy1+pmwkhlF5tICS7PqTZqWHAhIXwVYwR9XM0HVklkw+mruYVa5xH VnbR5REq37R79lPutoNJ8nZSnWv27tbGwthbOwvRk8qH06E6m4PgpAERFKyZd+QaMJze Pcn6I0tg3rPZcBXozcA1zukHnRkx73tHU29kMN3dEGBRSzhV/+fOsrKxbSNa3R1GszL7 cGrwY/PpUBLlQrFAt7HF7bfQavoW0WVk1vLEPVXyl+DjiCOKx5PVUCWx/pB6r5fsZAxP 1RNVq5ueqcSAl9BNU/GmwFWaClvyIMWmCbdlQvVF3UwTxTEuBF/pQcaVq8QTDd7Csv0X Vw==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dH8rWD0a/T+kIUuq/3O9sygku3e8HDc2mR1AiqZes+f33yDVQYXsbvcrXS/po7eb0EldVWyEwJCJ3NDourBCHkYz0aG24lTbDscn6p+ppINsPqmiDLwN3TZoKbIpvysieGboM9YifbkYGHE3FwwN1qKhjk+0hquksJmZNePtHaHe1RBDtrtUHxBBxmztnSZTS0cknnuVxY8gSX8RXAFE3UjBr9IRv4WMSqZHN9DW1qIVmoKTKr3aBzMcL/pk2bbL+/CnV41vR/GOuVNEeapGGdT6oCwJXbhfCD90UHgoP13hWPuieEIuq0yDe9sv3rjwPhTFVlq66u9SfJ/63vjEIw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MWyJx/1Tu3pKy+0dwazJpgLv9T7dH+N9tREbacsQutI=; b=D/AxnlVJTW59727A71JUgBN4pAX2LAdiEdHs9tH3yC7L9PnUQfFcHkHSJHBiv7elqtyh5R66BejLmI31QOUkKqEBbqYelnCCvrMl1yc4SbgXfyQUN9DVFm3LyLW4s677mFO7XBjguzYRXy8JTqa+Lxt01FJ4Mx1xcuGbmGHEKVkc/wJ3WlPLBlfajmOBtIXpL3gL1kI7rz9BPa91NukwcczcKoQnn4whnpAzLo86zPcY4wocazob6zlZrSbhPaTsPYwwMFtHfGdyITtXpCdrVg7u3Qm5EwaMdlXm6rMsL3/BoZcpCt4bzzyxslESIVDVR9FgzSuNiXu4uoDhemI+bg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hbo.com; dmarc=pass action=none header.from=hbo.com; dkim=pass header.d=hbo.com; arc=none
From: "Haanraadts, Mark (HBO) via cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Haanraadts, Mark (HBO)" <Mark DOT Haanraadts AT hbo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: X11 forwarding request failed on channel 0
Date: Thu, 12 Sep 2019 13:37:13 +0000
Message-ID: <BYAPR08MB44066E5A1751402C84C0ED4CFCB00@BYAPR08MB4406.namprd08.prod.outlook.com>
x-twx: true
x-ms-oob-tlc-oobclassifiers: OLM:7219;
received-spf: None (protection.outlook.com: hbo.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: pRIIyFbouQyuCN5t33SpiSA7t7fgK6OEtw2mb28pnfSuJfkj3nHkLCiZDrcRoGo0GegUmWehLEIGsbqAA2/pIw==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8CDbwkI013984

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 AT openssh DOT 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019