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
add by user root this command : ssh user_to_acces@hostName -X
user_to_acces = user hostName = hostname machine