Skip to content

Instantly share code, notes, and snippets.

@yudistiraashadi
Forked from orendon/xclip_ssh_rsa.sh
Created October 4, 2018 14:58
Show Gist options
  • Save yudistiraashadi/0cb0713ccff3b33d76e1da497dea3199 to your computer and use it in GitHub Desktop.
Save yudistiraashadi/0cb0713ccff3b33d76e1da497dea3199 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