Skip to content

Instantly share code, notes, and snippets.

@aguerrave
Forked from orendon/xclip_ssh_rsa.sh
Created August 16, 2020 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aguerrave/2db7867b057e4a44a303110621784dc8 to your computer and use it in GitHub Desktop.
Save aguerrave/2db7867b057e4a44a303110621784dc8 to your computer and use it in GitHub Desktop.
linux copy ssh rsa key, xclip xsel pbcopy
xclip -sel clip < ~/.ssh/id_rsa.pub
# in case you get a display null error
DISPLAY=:0 xclip -sel clip < ~/.ssh/id_rsa.pub
# osx
pbcopy < ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment