Copy SSH key to Clipboard

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.

Mac

  • Type: pbcopy < ~/.ssh/id_rsa.pub

Linux (Ubuntu)

  • 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.

2 thoughts to “Copy SSH key to Clipboard”

Leave a Reply

Your email address will not be published. Required fields are marked *