Skip to content

Instantly share code, notes, and snippets.

@ahaneef29
Forked from vanderb/.bash_profile
Created October 13, 2022 12:51
Show Gist options
  • Save ahaneef29/e161ef00f8c2a47f3c06d284ff0e9cee to your computer and use it in GitHub Desktop.
Save ahaneef29/e161ef00f8c2a47f3c06d284ff0e9cee to your computer and use it in GitHub Desktop.
Copy ssh public-key to clipboard on MacOS
alias sshkey="pbcopy < ~/.ssh/id_rsa.pub"

Setup

Add command to your .bash_profile in home-directory. (~/.bash_profile)

Usage

Just use command sshkey in terminal to copy your public-key to clipboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment