ssh on F14 complains when I run emacs with X11 port forwarding



On F14's desktop, from gnome-terminal, I ssh to another host with port forwarding (ForwardX11 yes, and ForwardX11Trusted yes). On the other host, I start emacs. Emacs appears to come up properly, with its window tunneled, and opening on my desktop. Everything looks normal, but I notice that the original gnome-terminal has a burst of about half-a-dozen ugly "connect : Connection refused" complaints.

Some experimentation shows that this error is not coming from the host where I started emacs, but from the ssh client I started on my desktop. strace shows this:

connect(7, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0"}, 110) = -1 ECONNREFUSED (Connection refused)
close(7) = 0
write(2, "connect : Connection refused\r\n", 30) = 30

The ssh client is attempting to make a connection to this AF_FILE socket, gets blown off, and whines to stderr.

Now, as far as I can tell, emacs appears to be running fine, but something is broken.

fuser shows that /tmp/.X11-unix/X0 is held open by Xorg:

[root@lc2440 ~]# fuser /tmp/.X11-unix/X0
/tmp/.X11-unix/X0: 7524
[root@lc2440 ~]# ps -ef | grep 7524
root 7524 7520 2 23:43 tty7 00:00:13 /usr/bin/Xorg :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-zEGonr/database -nolisten tcp

Xorg has this socket open, but ssh can't connect to it. Not sure what the bug is, here. Who should get this bug in bugzilla?

Attachment: pgp7YYaj2ic1D.pgp
Description: PGP signature

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Relevant Pages

  • Re: X11 Forwarding on a Headless Linux Box
    ... but that the X client can't connect to the SSH X proxy ... Perhaps the name "host" does not refer correctly to the remote ... debug1: Requesting X11 forwarding with authentication spoofing. ...
    (comp.security.ssh)
  • Re: How to Setup X11 for SSH Connections???
    ... configure your ssh-client to support X forwarding with a ... it should be totally transparant to use emacs from that moment. ... > I frequently ssh into my school account from my home linux machine. ... I'm currently trying to use gnuplot which requires X to run. ...
    (comp.os.linux)
  • X/OpenGL forwarding
    ... The firewall is OpenBSD 3.1 -stable. ... Sessions from their home PCs to Host B on the DMZ. ... I have ssh up and running on both the firewall and Host B. ... When forwarding X is it the ssh server on host B that does the ...
    (comp.security.ssh)
  • Re: ssh on F14 complains when I run emacs with X11 port forwarding
    ... forwarding. ... host, I start emacs. ... Emacs appears to come up properly, ... GConf might think you are running locally and tries unsucessfully to ...
    (Fedora)
  • Re: Problems forwarding X over ssh
    ... >With the proviso that the host must have permission to attach to your box, ... ssh to work but the -X option never gave me the forwarding as expected. ... I decided to "startx" on the cygwin client before ...
    (Fedora)