Skip to content

Instantly share code, notes, and snippets.

@Anarbb
Created August 18, 2022 12:17
Show Gist options
  • Save Anarbb/0de0d4ad02faffc2391ae35e68a453f7 to your computer and use it in GitHub Desktop.
Save Anarbb/0de0d4ad02faffc2391ae35e68a453f7 to your computer and use it in GitHub Desktop.
A quick script I made to check all the key-servers, Add this to your /usr/bin
#!/bin/bash
key_servers=("ha.pool.sks-keyservers.net" "hkp://p80.pool.sks-keyservers.net:80" "keyserver.ubuntu.com" "hkp://keyserver.ubuntu.com:80" "pgp.mit.edu")
for key_server in ${key_servers[@]}; do
echo "[+] Start checking ${key_server}..."
gpg --keyserver "${key_server}" --recv-keys ${1} && break || echo "[+] Trying new server..."
done
@Anarbb
Copy link
Author

Anarbb commented Aug 18, 2022

Screenshot from 2022-08-18 13 20 55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment