Last active
September 29, 2023 22:52
-
-
Save orendon/11439427 to your computer and use it in GitHub Desktop.
linux copy ssh rsa key, xclip xsel pbcopy (clipboard)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you Oscar! It helped me a lot.