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

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.

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.

Dette innlegget ble publisert i Ubuntu / Linux og merket med , , , . Bokmerk permalenken.