I discovered a new tool today while adding my ssh keys to Github, something called xclip.
The xclip command makes it easy to capture output to the clipboard so you can paste it to another location like into a browser or word file etc.
The github docs above have you use it to copy your RSA key and save it for pushing your repository so you don’t have to supply a user name and password.
xclip -selection clipboard < ~/.ssh/id_ed25519.pub
The above tells xclip to put the contents of
id_ed25519.pub into the clipboard. You can then use ctrl + v to paste it anywhere you need it.
Here is more info and examples on how to use xclip
Link to some man page type info about the options it accepts as arguments.
Another link to similar info about xclip it’s options etc.