I'm trying to set up ssh-add/ssh-askpass so that it asks me for my ssh key passwords when I first login to my desktop environment.
I've added a .xsession file to my home directory which contains the following:
Right after I first login using my username/password a dialog pops up asking me to enter the password for the key I specified; however, after I enter the password, I'm always returned back to the login screen and I can't login.
I had this same problem before and I solved it somehow, unfortunately, I didn't take any notes on what I did and I also can't seem to find the solution online anywhere. Any ideas? I'm using Debian 8 with LXDE and lightdm.