Subject: bug#35300: 27.0.50; emacsclient on remote sessions no longer works

From: Glenn Morris <[email-masked]>
Date: Thu, 18 Apr 2019 20:36:24 -0400

Works for me. I guess your ssh is not setting XDG_RUNTIME_DIR.
This is handled by pam_systemd, ref eg
https://www.freedesktop.org/software/systemd/man/pam_systemd.html

See discussion in https://debbugs.gnu.org/33847