gpg --output keys/username.pub.gpg --detach-sig keys/username.pub
awk 'FNR==1{print ""}1' keys/*.pub > authorized_keys
shasum -a 256 keys/*.pub > SHA256SUMS
shasum -a 256 authorized_keys > authorized_keys.sha256
gpg --output SHA256SUMS.gpg --detach-sig SHA256SUMS
gpg --output authorized_keys.sha256.gpg --detach-sig authorized_keys.sha256
gpg --verify SHA256SUMS.gpg SHA256SUMS
gpg --verify authorized_keys.sha256.gpg authorized_keys.sha256
shasum -a 256 -c SHA256SUMS
shasum -a 256 -c authorized_keys.sha256
Do this in a temp dir:
cd /tmp
curl -s -O https://raw.githubusercontent.com/DekodeInteraktiv/pubkeys/master/authorized_keys
curl -s -O https://raw.githubusercontent.com/DekodeInteraktiv/pubkeys/master/authorized_keys.sha256
curl -s -O https://raw.githubusercontent.com/DekodeInteraktiv/pubkeys/master/authorized_keys.sha256.gpg
gpg --verify authorized_keys.sha256.gpg authorized_keys.sha256
shasum -a 256 -c authorized_keys.sha256
cat authorized_keys >> ~/.ssh/authorized_keys