I am working in terminal via ssh. When I commit, I am asked for a password to unlock my private key. As long as I have no graphical session running everything works as expected.
The problem is that when I have an graphical session running (XFCE), I am asked for the password in that session rather in the terminal. How can I force git/gpg2 to ask for password in the terminal when the graphical session is running?
I use Ubuntu 20.04 LTS.