It looks like KDE walletmanager may be the issue here. I'll run over what I've found, and then I hope someone can tell me how to authenticate for the session only, not permanently.
At this web site,
http://mah.everybody.org/docs/ssh, it's mentioned that gnome automatically launches ssh-agent, but kde doesn't. He says to add
- Code: Select all
ssh-agent kde
to one's ~/.xsession file.
My ~/.xsession file has:
- Code: Select all
# if use-ssh-agent is specified in /etc/X11/Xsession.options
# (this is the default) then you need only the second line
# eval ssh-agent
ssh-add
and when I check /etc/X11/Xsession.options, it has a line:
- Code: Select all
use-ssh-agent
So, isn't ssh-agent running, just as it should, long before kde starts up? Do I actually need the "ssh-agent kde" line in ~/.xsession?
If I'm understanding that right, then my problem must be that Wallet Manager is interfering and I need to change settings there. I found some instructions at
http://aeparker.com/blog/ssh-agent-kde-wallet. I'll quote them here just to have everything in one place:
ssh-agent should have been installed as part of openssh, so make sure that kde wallet is installed (it probably is), and then install ksshaskpass.
Now create three scripts as follows:
~/.kde4/env/ssh-agent.sh
eval `ssh-agent`
~/.kde4/shutdown/ssh-agent.sh
ssh-agent -k
~/.kde4/Autostart/ssh-add.sh
#!/bin/bash
export SSH_ASKPASS=/usr/bin/ksshaskpass
/usr/bin/ssh-add
But then it says: "Now the key will be ready for use until you logout of KDE. In the future, you will just need to enter the wallet password on login."
I don't want my wallet password to provide automatic access to my ssh login for my backup server. Which sounds like what I'd be doing if I follow those instructions. My wallet password is fairly simple because mine is a single-user machine. I just want kde to remember my ssh login for the session (only!) and to allow rsync to access that without my input, the same way it did on gnome.
How do I get walletmanager to do that?