Skip to content

Instantly share code, notes, and snippets.

@jkjuopperi
Created August 15, 2015 09:09
Show Gist options
  • Save jkjuopperi/3ad54f21b22bacd1a8dd to your computer and use it in GitHub Desktop.
Save jkjuopperi/3ad54f21b22bacd1a8dd to your computer and use it in GitHub Desktop.
Show my SSH public key and copy it into clipboard on Mac
#!/bin/sh
cat ~/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub |pbcopy
echo "# Public key copied to clipboard" >&2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment