Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|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
add comment

4 Answers

up vote 4 down vote accepted

Use ssh-agent and ssh-add?

share|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 '12 at 15:32
show 1 more comment

If you've installed Seahorse (sudo apt-get install seahorse), add export $(gnome-keyring-daemon --daemonize --start) to your .bashrc and you'll get the same SSH key behaviour as in vanilla Ubuntu.

share|improve this answer
2  
This should be the accepted answer. –  mreq Mar 22 '13 at 10:24
add comment

I think this is what you're looking for:

Setup of SSH agent in Xubuntu 11.10 to get password-less authentication with use of public key | Hnygard.no

If you have not already done so, set up your private and public key (See Githubs description about SSH key half way through Set Up Git). It is important that you add a passphrase to your private key.

Install the package ssh-askpass:

sudo apt-get install ssh-askpass

Add «/usr/bin/ssh-add» to your start up. Go to Settings – Settings manager – Session and startup. Go to Application Autostart and add an item that runs the command «/usr/bin/ssh-add«:

On next login you’ll get the following dialog asking for your passphrase. After entering it, you can open a terminal or use sftp in the file manager without typing a password.

share|improve this answer
    
thx, this works for me! –  Produnis Apr 5 at 20:44
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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