From owner-freebsd-current@freebsd.org Tue Sep 22 18:06:56 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 167F63F1A27 for ; Tue, 22 Sep 2020 18:06:56 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bwq5B6B1Jz4PNG for ; Tue, 22 Sep 2020 18:06:54 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.160] (cpe-23-243-161-111.socal.res.rr.com [23.243.161.111]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id ec483587 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 22 Sep 2020 18:06:46 +0000 (UTC) Subject: Re: Can't forward X11 apps over ssh since migrating to 13-CURRENT To: "O'Connor, Daniel" , Patrick McMunn Cc: freebsd-current@freebsd.org References: <56CFC7AB-8544-456F-891F-83F3BFDA6F80@dons.net.au> From: Pete Wright Message-ID: <2c24beb6-15cb-0830-e112-e4a082a68fda@nomadlogic.org> Date: Tue, 22 Sep 2020 11:06:41 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <56CFC7AB-8544-456F-891F-83F3BFDA6F80@dons.net.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4Bwq5B6B1Jz4PNG X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.89 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-1.04)[-1.045]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.59)[-0.589]; NEURAL_HAM_MEDIUM(-0.95)[-0.955]; FREEMAIL_TO(0.00)[dons.net.au,gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current]; RECEIVED_SPAMHAUS_PBL(0.00)[23.243.161.111:received] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2020 18:06:56 -0000 On 9/21/20 8:39 PM, O'Connor, Daniel wrote: > >> On 22 Sep 2020, at 08:06, Patrick McMunn wrote: >> I don't know if it's just coincidental or if it's because of some change in >> 13-CURRENT, but I recently migrated from 12.1-STABLE, and now I am unable >> to forward X11 apps over ssh. The only app I was accustomed to running this >> way was Handbrake. It worked fine before, but now i get this: >> >> $ ghb >> Unable to init server: Could not connect to 127.0.0.1: Connection refused >> >> (ghb:87219): Gtk-WARNING **: 13:12:41.281: cannot open display: >> >> I have tried other apps like Wireshark and even xclock just to see, but >> they won't work either. Has anyone else had problems with X11 forwarding on >> 13-CURRENT? If it's working for everyone else, at least I can know it's >> probably not 13-CURRENT's fault, and I need to look elsewhere for the >> cause. And yes, my sshd_config has it enabled. It worked fine before, and I >> made sure to keep the same config. > What is the value of DISPLAY? (ie echo $DISPLAY) > > Is sshd listening on that port? eg.. > [test 3:36] ~> echo $DISPLAY > localhost:11.0 > [test 3:36] ~> sockstat|grep 6011 > radar sshd 5414 8 tcp6 ::1:6011 *:* > radar sshd 5414 9 tcp4 127.0.0.1:6011 *:* might have missed this but how is the ssh session being established.  i just verified "ssh -X host" allows me to redirect X to my local workstation.  both systems are running CURRENT as well. -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA