I have not gotten the SSH agent i Ubuntu to work very well in Xubuntu. Therefor I’ve come up with two steps to achieve password-less login with public key authentication when using SSH. Using this method you’ll be asked for your private key passphrase only at login.
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.