SyntaxFix
Write A Post
Hire A Developer
Questions
Another alternative solution:
cat ~/.ssh/id_rsa.pub | xsel -i -b
From man xsel :
man xsel
-i, --input read standard input into the selection. -b, --clipboard operate on the CLIPBOARD selection.
-i, --input
read standard input into the selection.
-b, --clipboard
operate on the CLIPBOARD selection.