Tip: Setting up ssh-agent with OpenBox
I hope I'm not the only person who took forever to figure out how to properly set up ssh-agent with OpenBox.
In ~/.config/openbox/environment Code:
eval $(ssh-agent) Then you modify your logout action, which by default, is in menu.xml and looks like this: Code:
<item label="Log Out"> Code:
<item label="Log Out"> Add the following to ~/.ssh/config: Code:
AddKeysToAgent yes And if you're wondering what I'm even on about: Funtoo's OpenSSH Key Management articles (which introduce their Keychain ssh-agent wrapper) is a good overview: https://www.funtoo.org/Keychain |
Just putting this into ~/.config/openbox/environment also works:
Code:
pkill ssh-agent |
And this in (~/.config/openbox/environment) works for gnome-keyring, which persists SSH keys across login sessions:
Code:
eval $(gnome-keyring-daemon --start) |
Thank you for your link to the information about Keychain.
Quote:
|
For my new Manjaro i3 install, I decided to go with something similar, only using the GNOME Keyring, Seahorse and libsecret system. The only part that wasn't part of the default install is Seahorse, and that had only two dependencies.
In ~/.xprofile I put: Code:
eval $(gnome-keyring-daemon --daemonize --start) Code:
AddKeysToAgent yes Code:
cd /usr/share/git/credential/libsecret |
Just worked a bit more on my Manjaro i3 setup, and I think I finally got it.
First, when I install I do not check "Log in automatically without asking for the password." Apparently, you cannot get an automatically unlocked keyring if you're using auto-logins with lightdm: FS#55950 - [lightdm] [gnome-keyring] Keyring not unlocked on initial autologin - works on subsequent sessions There's advice out there to just set "Login" keyring's password to a blank one, if you want both auto-login and auto-unlock, but I couldn't get that to work. AFAICT, the information above is currently valid. Install Seahorse and check the "Login" keyring. It should be unlocked. If it somehow isn't being unlocked when you log in, then make sure the "Login" keyring has the same password as your login password. In ~/.xprofile, put: Code:
export SSH_ASKPASS=/usr/lib/seahorse/ssh-askpass Code:
AddKeysToAgent yes Code:
git config --global credential.helper /usr/lib/git-core/git-credential-libsecret |
All times are GMT -5. The time now is 03:15 PM. |