all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guixSD - problem with X11 forwarding
@ 2016-02-12 15:06 myglc2
  2016-02-12 19:43 ` Alex Kost
  2016-02-24 12:13 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: myglc2 @ 2016-02-12 15:06 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

On guixSD, with no packages installed in the login user profile, I get
'X11 forwarding request failed on channel 0'

config.scm and ssh-v log attached below.

TIA - george


[-- Attachment #2: config.m.scm --]
[-- Type: application/octet-stream, Size: 2071 bytes --]

;; see if tmux supports 256 colors
;; add curl for lpaste
;; add xauth for X11

(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules admin)
(use-package-modules disk) ;; parted
(use-package-modules ssh rsync wget screen)
(use-package-modules ssh tmux)
(use-package-modules version-control) ;; git git-manpages
(use-package-modules emacs) ;; emacs magit
(use-package-modules curl) ;; lpaste
(use-package-modules xorg) ;; xauth


(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")

  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
                        (device "g1sd")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  (users (cons* (user-account
                (name "glc")
                (comment "g l c")
                (group "users")
                (supplementary-groups '("wheel"))
		(home-directory "/home/glc"))

  	  (user-account
                (name "glc2")
                (comment "glc2")
                (group "users")
                (supplementary-groups '("wheel"))
                (home-directory "/home/glc2"))

	  (user-account
                (name "glc3")
                (comment "glc3")
                (group "users")
                (supplementary-groups '("wheel"))
                (home-directory "/home/glc3"))
	  
  	  (user-account
                (name "glc4")
                (comment "glc4")
                (group "users")
                (supplementary-groups '("wheel"))
                (home-directory "/home/glc4"))

	  %base-user-accounts))

  (packages (cons*
	     glibc-utf8-locales
	     parted
	     openssh
	     rsync
	     wget
	     screen tmux
	     emacs
	     git git-manpages magit
	     curl ;; lpaste
	     xauth ;; X11
	     %base-packages
	     )
	    )

  (services (cons* (dhcp-client-service)
                   (lsh-service #:port-number 22)
                   %base-services)))

[-- Attachment #3: config.m.scm.xfwd.fail.log --]
[-- Type: application/octet-stream, Size: 2126 bytes --]

nemo:~ $ ssh -v g1
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/glc/.ssh/config
debug1: /Users/glc/.ssh/config line 17: Applying options for g1
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: Connecting to g1 [192.168.1.7] port 22.
debug1: Connection established.
debug1: identity file /Users/glc/.ssh/glc type 1
debug1: identity file /Users/glc/.ssh/glc-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version lshd-2.1 lsh - a GNU ssh
debug1: no match: lshd-2.1 lsh - a GNU ssh
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client 3des-cbc hmac-md5 none
debug1: kex: client->server 3des-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA 70:76:81:e9:3a:40:e5:fb:2a:7f:9c:33:a6:55:f2:b8
debug1: Host 'g1' is known and matches the RSA host key.
debug1: Found key in /Users/glc/.ssh/known_hosts:17
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/glc/.ssh/glc
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: password
glc@g1's password:
debug1: Authentication succeeded (password).
Authenticated to g1 ([192.168.1.7]:22).
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
glc@g1 ~$ date
Fri Feb 12 10:00:44 EST 2016
glc@g1 ~$'

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

* Re: guixSD - problem with X11 forwarding
  2016-02-12 15:06 guixSD - problem with X11 forwarding myglc2
@ 2016-02-12 19:43 ` Alex Kost
  2016-02-12 21:48   ` myglc2
  2016-02-24 12:13 ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Alex Kost @ 2016-02-12 19:43 UTC (permalink / raw)
  To: myglc2; +Cc: help-guix

myglc2 (2016-02-12 18:06 +0300) wrote:

> On guixSD, with no packages installed in the login user profile, I get
> 'X11 forwarding request failed on channel 0'
>
> config.scm and ssh-v log attached below.
>
> TIA - george
>
>
> ;; see if tmux supports 256 colors
> ;; add curl for lpaste
> ;; add xauth for X11
>
> (use-modules (gnu))
> (use-service-modules networking ssh)
> (use-package-modules admin)
> (use-package-modules disk) ;; parted
> (use-package-modules ssh rsync wget screen)
> (use-package-modules ssh tmux)
> (use-package-modules version-control) ;; git git-manpages
> (use-package-modules emacs) ;; emacs magit
> (use-package-modules curl) ;; lpaste
> (use-package-modules xorg) ;; xauth

I wonder why do you do it like this?  I would do it in a single
'use-package-modules' clause:

(use-package-modules
 admin
 disk                           ; parted
 ssh rsync wget screen
 tmux
 version-control                ; git git-manpages
 emacs                          ; emacs magit
 curl                           ; lpaste
 xorg)

As for your problem, I have no idea what's going on, sorry :-(

-- 
Alex

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

* Re: guixSD - problem with X11 forwarding
  2016-02-12 19:43 ` Alex Kost
@ 2016-02-12 21:48   ` myglc2
  0 siblings, 0 replies; 5+ messages in thread
From: myglc2 @ 2016-02-12 21:48 UTC (permalink / raw)
  To: help-guix

Alex Kost <alezost@gmail.com> writes:

> myglc2 (2016-02-12 18:06 +0300) wrote:
>
>> On guixSD, with no packages installed in the login user profile, I get
>> 'X11 forwarding request failed on channel 0'
>>
>> config.scm and ssh-v log attached below.
>>
>> TIA - george
>>
>>
>> ;; see if tmux supports 256 colors
>> ;; add curl for lpaste
>> ;; add xauth for X11
>>
>> (use-modules (gnu))
>> (use-service-modules networking ssh)
>> (use-package-modules admin)
>> (use-package-modules disk) ;; parted
>> (use-package-modules ssh rsync wget screen)
>> (use-package-modules ssh tmux)
>> (use-package-modules version-control) ;; git git-manpages
>> (use-package-modules emacs) ;; emacs magit
>> (use-package-modules curl) ;; lpaste
>> (use-package-modules xorg) ;; xauth
>
> I wonder why do you do it like this?

Because I don't know any better and I am just continuing the pattern set
in bare-bones.scm

> I would do it in a single
> 'use-package-modules' clause:
>
> (use-package-modules
>  admin
>  disk                           ; parted
>  ssh rsync wget screen
>  tmux
>  version-control                ; git git-manpages
>  emacs                          ; emacs magit
>  curl                           ; lpaste
>  xorg)
>

That looks easier, thank you.

> As for your problem, I have no idea what's going on, sorry :-(

:(

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

* Re: guixSD - problem with X11 forwarding
  2016-02-12 15:06 guixSD - problem with X11 forwarding myglc2
  2016-02-12 19:43 ` Alex Kost
@ 2016-02-24 12:13 ` Ludovic Courtès
  2016-03-01  2:12   ` myglc2
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2016-02-24 12:13 UTC (permalink / raw)
  To: myglc2; +Cc: help-guix

myglc2 <myglc2@gmail.com> 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:

--8<---------------cut here---------------start------------->8---
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 
--8<---------------cut here---------------end--------------->8---

Indeed, server_x11.c in lsh reads:

--8<---------------cut here---------------start------------->8---
#ifndef XAUTH_PROGRAM
# define XAUTH_PROGRAM "/usr/X11R6/bin/xauth"
#endif
--8<---------------cut here---------------end--------------->8---

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

Thanks,
Ludo’.

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

* Re: guixSD - problem with X11 forwarding
  2016-02-24 12:13 ` Ludovic Courtès
@ 2016-03-01  2:12   ` myglc2
  0 siblings, 0 replies; 5+ messages in thread
From: myglc2 @ 2016-03-01  2:12 UTC (permalink / raw)
  To: help-guix

ludo@gnu.org (Ludovic Courtès) writes:

> myglc2 <myglc2@gmail.com> 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.

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

end of thread, other threads:[~2016-03-01  2:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-12 15:06 guixSD - problem with X11 forwarding myglc2
2016-02-12 19:43 ` Alex Kost
2016-02-12 21:48   ` myglc2
2016-02-24 12:13 ` Ludovic Courtès
2016-03-01  2:12   ` myglc2

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.