sudo apt-get install xclip xclip -sel clip < ~/.ssh/id_rsa.pub Copies the contents of the id_rsa.pub file to your clipboard