I like to use `pbcopy` when exporting public keys to external services like GitHub.
`cat ~/.ssh/mykey.pub | pbcopy`
I love this tool too!
except one time I quickly typed
`cat ~/.ssh/mykey | pbcopy`
And sent it straight away to my coworker on Slack.
I then spent the rest of the day making a new private key and adding my new pubkey to all of the 1000+ servers I had root access to. I mean we had tools to help but it still wasn’t fun.
With great power/convenience comes the potential to do dumb things at lightning speeds!
put your private key in something like Secretive: https://github.com/maxgoedjen/secretive