From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: guixSD - problem with X11 forwarding Date: Mon, 29 Feb 2016 21:12:51 -0500 Message-ID: <877fhnx7x8.fsf@gmail.com> References: <878u2qdl2l.fsf@gmail.com> <87vb5efgrr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaZmG-0000xF-M8 for help-guix@gnu.org; Mon, 29 Feb 2016 21:11:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaZmD-0003sC-EZ for help-guix@gnu.org; Mon, 29 Feb 2016 21:11:08 -0500 Received: from plane.gmane.org ([80.91.229.3]:53661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaZmD-0003qk-7g for help-guix@gnu.org; Mon, 29 Feb 2016 21:11:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aaZm7-0004XV-VM for help-guix@gnu.org; Tue, 01 Mar 2016 03:11:00 +0100 Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Mar 2016 03:10:59 +0100 Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Mar 2016 03:10:59 +0100 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: help-guix@gnu.org ludo@gnu.org (Ludovic Courtès) writes: > myglc2 skribis: > >> On guixSD, with no packages installed in the login user profile, I get >> 'X11 forwarding request failed on channel 0' > > [...] > >> debug1: channel 0: new [client-session] >> debug1: Entering interactive session. >> debug1: Requesting X11 forwarding with authentication spoofing. >> debug1: Sending environment. >> debug1: Sending env LANG = en_US.UTF-8 >> X11 forwarding request failed on channel 0 > > Right, I see that as well. > > lshd gives some clues in /var/log/messages: > > Feb 23 18:14:09 localhost lshd[430]: lshd: Updating utmp for login failed (errno = 2): No such file or directory > Feb 23 18:14:09 localhost lshd[430]: lshd: xauth invocation failed: exit code: 127 > Feb 23 18:14:33 localhost lshd[430]: lshd: Updating utmpx for logout failed (errno = 2): No such file or directory > Feb 23 18:14:33 localhost lshd[430]: lshd: write_buffer: Attempt to write data to closed buffer. > Feb 23 18:14:33 localhost lshd[430]: lshd: Disconnect for reason 11: disconnected by user > > Indeed, server_x11.c in lsh reads: > > #ifndef XAUTH_PROGRAM > # define XAUTH_PROGRAM "/usr/X11R6/bin/xauth" > #endif > > I believe this is fixed by commit da35acf. > > To give it a try, you can run (as root): > > # guix pull > # herd stop ssh-daemon > # guix system reconfigure your-config.scm I tried the above. 'ssh -v ...' still produces results quoted above and I see in /var/log/messages: Feb 29 20:43:54 localhost lshd[6959]: lshd: Failed to cd to `/tmp/.X11-unix' (errno = 2): No such file or directory Feb 29 20:43:54 localhost lshd[6959]: lshd: Updating utmp for login failed (errno = 2): No such file or directory Feb 29 20:45:35 localhost lshd[6959]: lshd: Updating utmpx for logout failed (errno = 2): No such file or directory Feb 29 20:45:35 localhost lshd[6959]: lshd: write_buffer: Attempt to write data to closed buffer. Feb 29 20:45:35 localhost lshd[6959]: lshd: Disconnect for reason 11: disconnected by user Feb 29 20:45:47 localhost lshd[6959]: lshd: Failed to cd to `/tmp/.X11-unix' (errno = 2): No such file or directory Feb 29 20:45:47 localhost lshd[6959]: lshd: Updating utmp for login failed (errno = 2): No such file or directory I tried 'sudo mkdir /tmp/.X11-unix' which changed /var/log/messages to: Feb 29 20:54:04 localhost lshd[6959]: lshd: Updating utmp for login failed (errno = 2): No such file or directory Feb 29 20:54:09 localhost lshd[6959]: lshd: Updating utmpx for logout failed (errno = 2): No such file or directory Feb 29 20:54:09 localhost lshd[6959]: lshd: write_buffer: Attempt to write data to closed buffer. Feb 29 20:54:09 localhost lshd[6959]: lshd: Disconnect for reason 11: disconnected by user and 'ssh -v ...' still produces the results quoted above.