I’m following in Generating SSH Keys, it says
sudo apt-get install xclip
Downloads and installs xclip. If you don\'t have <
Try this and it will work like a charm. I was having the same error but this approach did the trick for me:
ssh USER@REMOTE "cat file"|xclip -i