Last Updated: February 25, 2016
·
650
· Lorin Hochstein

Copy public key to clipboard with keyboard shortcut

Here's a trick I use to copy my ssh public key to my clipboard with a keyboard shortcut using Quicksilver on OS X.

Open Quicksilver preferences and choose "Trigger", then click "+" on the bottom of the screen to create a new trigger.

  1. For the first pane, hit ".", then type the following text:

    pbcopy < ~/.ssh/id_rsa.pub
  2. For the second pane, choose "Run Command in Shell" as the action.

  3. Choose a keyboard shortcut (I use Alt-P).