Copying my ssh key to my clipboard is always something I have to google. It’s different depending on operating system and depends on what you have installed. This is a short guide on how to copy your ssh key to the clipboard.
- Type: pbcopy < ~/.ssh/id_rsa.pub
- Type and copy output: cat ~/.ssh/id_rsa.pub
Windows (Git Bash)
- Type: clip < ~/.ssh/id_rsa.pub
Please leave a comment below if you have a better way or would like me to add an additional operating system.
Also published on Medium.