How to copy public SSH key

I found myself completely unable to remember this exact command, so let’s save it here forever:

To copy public key from to clipboard

pbcopy < ~/.ssh/

To show public key from in terminal and copy it to clipboard

cat ~/.ssh/

There. No more googling this.

Leave a comment

Write something about it