This is useful when you are giving SSH access to a server. Basically, we have to append the public key to ~/.ssh/authorized_keys.

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

Replace the with real github username.