Skip to content

Instantly share code, notes, and snippets.

@orendon
Last active September 29, 2023 22:52
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save orendon/11439427 to your computer and use it in GitHub Desktop.
Save orendon/11439427 to your computer and use it in GitHub Desktop.
linux copy ssh rsa key, xclip xsel pbcopy (clipboard)
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
## Alternative
# apt get install xclip
xclip -selection clipboard < ~/.ssh/id_edxxxx.pub
@lfkodama
Copy link

Thank you Oscar! It helped me a lot.

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