GPG Agent for SSH Authentication
Setup:
$ sudo apt install scdaemon
$ echo “use-agent” » ~/.gnupg/gpg.conf
$ echo “enable-ssh-support” » ~/.gnupg/gpg-agent.conf
$ echo “IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh” » ~/.ssh/config
Addind public keys stubs to keyring:
$ gpg2 –import public-armored-stub.gpg
$ gpg2 –edit-key <mykey>
gpg> trust
Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y
gpg> quit
fonte:
https://mlohr.com/gpg-agent-for-ssh-authentication-update/
https://askubuntu.com/questions/1407846/ubuntu-22-04-ssh-smart-card-authentication-how-to-make-enable-ssh-support-flag/1409316#1409316