I’m following in Generating SSH Keys, it says
sudo apt-get install xclip
Downloads and installs xclip. If you don\'t have <
The following is also working for me:
ssh @ "cat "|pbcopy