Using a GnuPG crypted RSA key for SSH

Matthias Apitz guru at
Wed May 1 16:32:54 CEST 2024


I've on my Linux cellphone L5 my RSA key for SSH crypted with GnuPG (to
be exactly with an OpenPGP card in the phone). I can do fine:

$ gpg -d id_rsa.asc > id_rsa  # which asks for the PIN of the OpenPGP card
$ ssh
Enter passphrase for key '/home/guru/.ssh/id_rsa':
$ rm id_rsa # so it can't get lost of teft of the L5

Is there some other solution for GnuPG+SSH without writing the private
key id_rsa to a file? Or even better as well without the need of
entering the passphrase for the RSA key?



Matthias Apitz, ✉ guru at, +49-176-38902045
Public GnuPG key:

I am not at war with Russia.
Я не воюю с Россией.
Ich bin nicht im Krieg mit Russland.

More information about the Gnupg-users mailing list