You are not logged in.
I've been trying to use my PGP key for SSH authentication following the relevant wiki entry. I'm able to make it work but run into trouble when I try to migrate it to a custom $GNUPGHOME.
$ gpg --list-keys
/home/frontear/.gnupg/pubring.kbx
---------------------------------
pub rsa3072 2023-08-28 [SCEA]
A1781A61AD12A4D2F22C14C036E3DA970EE64512
uid [ultimate] Ali Rizvi <alirizv922@icloud.com>
uid [ultimate] Ali Rizvi (for github) <perm-iterate-0b@icloud.com>$ ssh-add -L
ssh-rsa [removed for privacy]I seem to run into trouble the moment I try to change my gnupg directory to a different place with the GNUPGHOME environment variable. I follow the recommendation in the gpg-agent blurb in the wiki which states to update the systemctl services with the new, non-default directory, and I do this, but while my keys will show, ssh-add -L displays no keys available, even though I still have a configured $GNUPGHOME/sshcontrol file and the systemctl sockets are all correctly configured as well. I don't understand what's going wrong between my migration, I migrate the folders, add the environment variable, migrate the systemctl services, but yet the keys will not be read for ssh authentication. I'm struggling to figure this out because I feel like I've followed every step of the wiki perfectly, to no avail. It will work completely fine without a custom gpg directory, just when I try to setup my custom one to move things out of my home directory.
Last edited by Frontear (2023-08-28 21:19:37)
Offline