==========================================
If normal applications (like xclock, firefox)
==========================================
$ ssh -XY myaccount@remote_x11.server
$ xclock$ firefox
==========================================
==========================================
If SNAP applications (like /snap/bin/notepad-plus-plus )
==========================================
$ ssh -XY myaccount@remote_x11.server
$ cp ~/.Xauthority ~/snap/notepad-plus-plus/current/$ /snap/bin/notepad-plus-plus
==========================================