Skip to content

Instantly share code, notes, and snippets.

@DreamShaded
Forked from orendon/xclip_ssh_rsa.sh
Created May 2, 2021 11:02
Show Gist options
  • Save DreamShaded/22e8ac9a51a35feb84fb33e169db0646 to your computer and use it in GitHub Desktop.
Save DreamShaded/22e8ac9a51a35feb84fb33e169db0646 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