also you can use echo "public-key-goes-here" | gpg --import for importing public keys and you can use gpg --list-keys to show all the keys you have