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

Bug #1602233 reported by Redmar
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
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)

Revision history for this message
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
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

FYI, this still affects 2.26.14.

affects: snappy → snapd
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.