After sshing in with X11 forwarding, run
After that, synaptic-pkexec works great, the Authentication box pops up on the client computer and accepts my password.
You have to kill the authentication agent process before exiting the ssh session or it hangs, though.
X11 forwarding means forwarding the X11 graphics created on the remote machine back to your local machine (as you stated).
I have found Xming and Putty to be quite tricky and somewhat outdated.
mobaxterm is a more integrated and powerful modern tool to achieve this (using windows locally, while remote is a linux server).
Having said that, if you are ...
We had the same problem with our Debian clients in an Active Directory environment. To indicate that the authentication process succeeds through a password, you could set an environment variable and then conditionally mount on that variable during session setup.
Create a modified version of the pam mount config in /usr/share/pam-configs/libpam-mount-pw-only:...
I know this thread is old, but just in case someone is wondering. I was getting exactly the same problem:
unable to open display ":0"
I was trying to turn on two of my displays via SSH, but it failed with the message from above. Other thing I had to say is that I wasn't logged on the console of the physical PC, so, only the logon screen was there, but the ...