2012-01-13

KDE4 and ssh-agent

Using KDE Wallet to store your SSH passphrase is now quite easy.

You need ksshaskpass installed.


Add a script to ~/.kde4/Autostart/ called (e.g.) ssh-add.sh, with execute permission, containing:

#!/bin/sh
export SSH_ASKPASS=/usr/lib64/ssh/ksshaskpass
/usr/bin/ssh-add

Next time you login, you'll be prompted for your KDE Wallet password, then your password.

Works well. Thanks to this helpful post for getting me started.

No comments: