"X11 connection rejected because of wrong authentication." when using snaps over ssh

Bug #1602233 reported by Redmar on 2016-07-12
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd
Medium
Unassigned

Bug Description

It appears that graphical snaps cant be used over ssh, due to authentication problems with X.

$ which notes
/snap/bin/notes

$ notes
X11 connection rejected because of wrong authentication.
QXcbConnection: Could not connect to display localhost:11.0
Aborted (core dumped)

Jamie Strandboge (jdstrand) wrote :

I can confirm this. Steps to reproduce:

In a vm:
$ sudo snap install notes
$ which notes
/snap/bin/notes
$ notes
(it launches)

Close notes then from the host:
$ ssh -X vm
$ notes
X11 connection rejected because of wrong authentication.
QXcbConnection: Could not connect to display localhost:10.0
Aborted (core dumped)

There are no security policy denials. I suspect this has something to do with the private /tmp and the hidden X directories, but would need an X expert to confirm.

Changed in snappy:
status: New → Confirmed
importance: Undecided → Medium
Jamie Strandboge (jdstrand) wrote :

FYI, this still affects 2.26.14.

affects: snappy → snapd
Jamie Strandboge (jdstrand) wrote :

This was triaged in https://forum.snapcraft.io/t/x11-forwarding-using-ssh/2381/. It has workarounds and a suggested solution.

Changed in snapd:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers