by agmm · 3y ago · 0 comments
`cat ~/.ssh/mykey.pub | pbcopy`
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!
`pbcopy < ~/.ssh/mykey.pub`
(I use this all the time myself!)