Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

Docker: x11 forward request always fails #2554

Open Defman21 opened 7 years ago

Defman21 commented 7 years ago

Short Summary

Whenever I try to run Komodo using docklet run , it always fails with the X11 forwarding request failed on channel 0 message. I can ssh with forwarding into any other server, but not to this one. (i've tried my own server using ssh -X user@ip and I ran xeyes on the server - this worked).

I'm out of ideas what's going on there. I've read a lot of Arch documentation but nothing helped on the client side, and since it's working with other servers, I doubt it's my problem.

I think @Naatan could give me some info since he's running Arch as well and I assume it's working for him.

Platform Information

Operating System (and version)? Linux defman 4.10.11-1-ARCH #1 SMP PREEMPT Tue Apr 18 08:39:42 CEST 2017 x86_64 GNU/Linux

Defman21 commented 7 years ago

I've built my own test image:

FROM ubuntu:16.04

RUN apt-get update --fix-missing
RUN apt-get upgrade -y

RUN apt-get install -y openssh-server x11-apps xauth

RUN mkdir /var/run/sshd

EXPOSE 22

ADD id_rsa.pub /root/.ssh/authorized_keys
RUN chown root:root /root/.ssh/authorized_keys
ADD id_rsa.pub /root/.ssh/authorized_keys2
RUN chown root:root /root/.ssh/authorized_keys2

CMD ["/usr/sbin/sshd", "-D"]

I'm still able to reproduce the issue, so it's not related to Komodo's docker image.

Here's a piece of the ssh -Y -X -v root@0.0.0.0 -p <port> output:

debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Requesting X11 forwarding with authentication spoofing.
X11 forwarding request failed on channel 0

The same output is there when I enable debug mode in the docklet file by adding -v to the ssh command.

Still looking for some help though.

Defman21 commented 7 years ago

Adding X11UseLocalhost no to the /etc/ssh/sshd_config file in the container fixed the issue for me.