funtoo / keychain

keychain ssh-agent front-end
http://www.funtoo.org
GNU General Public License v2.0
758 stars 108 forks source link

installing keychain on opensuse results in black screen after boot #147

Open guillermo-st opened 10 months ago

guillermo-st commented 10 months ago

I'm trying to set up keychain on opensuse to automatically add my github ssh keys on boot, and prevent the password input popups on every commit. After installing keychain and adding my keys, it works just fine until the next reboot. After turning the machine on, opensuse gets hung up on a black screen. The only workaround is to roll the OS back to a previous snapshot where keychain was not installed.

I have even tried reinstalling opensuse from scratch (including a full disk format), but this only happens after installing keychain. This is the line I added to my .bashrc:

eval ` keychain --eval $HOME/.ssh/* `

I have no idea how to fix this, I guess I will have to settle for manually starting the ssh agent myself. Help much appreciated!

oversize commented 9 months ago

I dont think you want that $HOME/.ssh/* thing. If anything you should specify the actual key(s) you want to load (and not everythin inside .ssh/). E.g. id_rsa id_ed25519

Also, you might want to use $() instead of backticks. Like so eval $(keychain --eval ) works fine with multiple keys inside ~/.ssh/ for me ... on debian.