gpg --recv-key often hangs due to unreliable keyserver
description
gpg --recv-key "2224 5C81 E3BA EB41 38B3 6061 310F 5612 00F4 AD77"
but it hangs and timesout.
Steps to Reproduce
- Install https://tails-dl.urown.net/tails/stable/tails-amd64-3.0/tails-amd64-3.0.iso with persistence and boot with an admin password.
- Connect to internet (via wifi, no firewall)
- Verify connectivity with sudo apt-get update
- Open a terminal
- $ cat /home/amnesia/.gnupg/dirmngr.conf
use-tor
keyserver hkp://jirk5u4osbsr34t5.onion - gpg —debug-all —recv-key “2224 5C81 E3BA EB41 38B3 6061 310F 5612 00F4 AD77”
Expected Behavior
The key is imported.
Actual Behavior
gpg: reading options from ‘/home/amnesia/.gnupg/gpg.conf’
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache
memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: DBG: chan_3 <- # Home: /home/amnesia/.gnupg
gpg: DBG: chan_3 <- # Config: /home/amnesia/.gnupg/dirmngr.conf
gpg: DBG: chan_3 <- OK Dirmngr 2.1.18 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_3 -> GETINFO version
gpg: DBG: chan_3 <- D 2.1.18
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KS_GET —
0x22245C81E3BAEB4138B36061310F561200F4AD77
gpg: keyserver receive failed: Connection timed out
Feature Branch: bugfix/12689-more-reliable-OpenPGP-keyserver
Related issues
- Related to #12210
- Related to #17169
- Has duplicate #16575 (closed)
- Has duplicate #17090 (closed)
- Blocks #14770 (closed)
- Blocks #16209
Original created by @dachary on 12689 (Redmine)