I recently installed
xclip on my CentOS 7 server. Since my machine does not have an X server, I'd have to configure my machine to forward X11 to my client.
Following the steps explained in this answer here:
- on my client(macOS 10.13), I wrote
ForwardX11 yes' in~/.ssh/config`
- on my server(CentOS 7), I set
but I still can't get
xclip to function on my server. I'm still getting the following error when I try to use
Error: Can't open display: (null)
Also the command
echo $DISPLAY outputs as empty.
What do I have to do?