How often have you asked or have been asked to provide public SSH keys in order to get authorized into given server or Git repository? I’ve heard horror stories of people providing private keys, by mistake. GitHub and GitLab ease this process greatly, but are not advertising it well enough.

You can append .keys to the URL of your profile in order to receive the public keys you have on your account in a format to directly pipe it into ~/.ssh/authorized_keys:

curl https://github.com/<username>.keys | tee -a ~/.ssh/authorized_keys

Same goes for any GitLab instance.