I have recently switched from Gnome to Xfce on Ubuntu 9.04.

In Gnome, the first time I entered the passphrase, it prompted me to save the passphrase.

In Xfce however, I am prompted for the passphrase every time I connect.

Is there a simple way to save the passphrase in Xfce?

link|improve this question
wfaulk's answer doesn't do what I originally asked for, but it's good enough so I've accepted it. With ssh-add, I only need to enter my passphrase once after I log in. – Alasdair Oct 9 '09 at 11:42
feedback

2 Answers

up vote 3 down vote accepted

Use ssh-agent and ssh-add?

link|improve this answer
2  
ssh-add is a good suggestion. However I still have to run ssh-add and enter my passphrase once per session. That's much better than before, but not quite as convenient as when I was running Gnome. – Alasdair Oct 8 '09 at 14:01
Gnome saves your private key password on disk somewhere? Ugh. Or maybe I don't know what you mean by "session". – wfaulk Oct 8 '09 at 15:41
By session I mean each time I log in. Yes, gnome-keyring stores the passphrase on disk, but it is encrypted using the login password. – Alasdair Oct 8 '09 at 16:30
Right, must run ssh-add every time. Really annoying. – ablmf Oct 4 '11 at 21:57
Yes, Gnome automatically ssh-add's all private keys in ~/.ssh, but Xfce does not. – graywh Feb 14 at 15:32
feedback

ssh application examines $SSH_ASKPASS environment variable (man ssh) and executes that application in order to get passphrase. You should switch this app to another one, that's capable of remembering: e.g. the one GNOME uses originally.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.