You are not logged in.

#1 2021-09-22 08:57:56

icar
Member
Registered: 2020-07-31
Posts: 562

[Solved] Etckeeper: avoid ssh key password prompt on pacman hook

I set up etckeeper, everything works as expected.

There is an inconvenience, tho: I keep getting a password prompt for the ssh key every time it uploads to Gitlab (on the {pre,post}-transaction commits). Is there a way to automatically unlock its ssh key when I log in? My keys are already unlocked for my user on login (thanks to seahorse and gdm) but I guess etckeeper can't take advantage of it because it's running as root.

The key etckeeper (basically root's git) is trying to use is located at /root/.ssh/gitlab.

Last edited by icar (2021-09-22 10:37:51)

Offline

#2 2021-09-22 10:05:35

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: [Solved] Etckeeper: avoid ssh key password prompt on pacman hook

are you using https://github instead of git@github?

Offline

#3 2021-09-22 10:31:42

icar
Member
Registered: 2020-07-31
Posts: 562

Re: [Solved] Etckeeper: avoid ssh key password prompt on pacman hook

No, I am using git@gitlab.com:(...) (checked by going as root to /etc and git remote get-url origin). And yes, there is only one remote.

Solved with: https://stackoverflow.com/a/112409 - It's a 400 key owned by root, so no worries having it without a passphrase.

Last edited by icar (2021-09-22 10:37:41)

Offline

Board footer

Powered by FluxBB