"X11 connection rejected because of wrong authentication." when using snaps over ssh
Bug #1602233 reported by
Redmar
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)
To post a comment you must log in.
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.