Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: x11 forward request always fails #2554

Open
Defman21 opened this issue Apr 27, 2017 · 2 comments · May be fixed by #2573
Open

Docker: x11 forward request always fails #2554

Defman21 opened this issue Apr 27, 2017 · 2 comments · May be fixed by #2573

Comments

@Defman21
Copy link
Contributor

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
Copy link
Contributor Author

Defman21 commented May 3, 2017

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 [email protected] -p <port> output:

debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype [email protected] 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
Copy link
Contributor Author

Defman21 commented May 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants