Copy SSH key to Clipboard

Tim
1 min readJan 17, 2018

--

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

Originally published at Tim Leland.

--

--