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
X11Forwardingasyesin/etc/ssh/sshd_config
but I still can't get xclip to function on my server. I'm still getting the following error when I try to use xclip:
Error: Can't open display: (null)
Also the command echo $DISPLAY outputs as empty.
What do I have to do?