Scratch my last workaround (#13). It didn't work. This one does though
Stop gnome-keyring ssh-agent from starting. Then ssh-agent and ssh works
as expected.
To stop gnome-keyring ssh-agent from starting do:
sudo mv /etc/xdg/autostart/gnome-keyring-ssh /etc/xdg/autostart
I found a way to trigger the gnome dialog box directly, so I only have
to enter the ssh password once.
I created ~/bin/gssh-add and put the following in it:
SSH_ASK_PASS=/usr/bin/ssh-askpass ssh-add
I then make it executable:
chmod +x ~/bin/gssh-add
And then I launch it using Alt+F2. That
My use case is that I have a script (using tmuxinator) that opens
several shells inside tmux and executes ssh in them, all at once. I run
ssh-add before starting the script, so that I only have to enter the
passphrase once. However with this behaviour I have to enter the
passphrase into the gui