Automatically load password protected SSH key on login
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes, there is a way to automatically load a pass phrase protected SSH key without you yourself running ssh-add, but it depends in part on which desktop environment you have. However, you'll still have to provide the pass phrase at the beginning in order to unlock it. Which desktop enviornment do you have and on which distro, including version?
Please say more about what you are trying to do. Someting is off and there is almost certainly a better work flow to try.
Why? That's not how SSH keys with passphrases work.
Each key will need its passphrase stored in a key ring instead.
So look at gnome-keyring and seahorse. You will need a passphrase to unlock the key ring but then the keys within it will be unlocked by the key ring. They should be part of GNOME and easily added to XFCE4.
Perfect. Hopefully the keyring password can be tied to login password.
Only purpose for SSH key passwords is when put keys on a machine not full disc encrypted. Prefer not to create multiple keys, some with passwords, some without.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.