I try to make a ssh connection from MacOS to linux. I've tried to follow several tips found on the internet, however I still get the following error when I tried to run xclock:
X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0
A little bit more information:
- It does not make any difference if I use ssh -X something@somewhere or ssh -Y something@somewhere
- I did install XQuartz and it is running on my Mac. xclock etc do work on Mac.
- When I add -vv when logging in I get the following: "debug1: No xauth program. Warning: No xauth data; using fake authentication data for X11 forwarding. debug1: Requesting X11 forwarding with authentication spoofing."
- which xauth @ Mac gives the result /opt/X11/bin/xauth while which xauth logged in at the server gives /usr/bin/xauth --> Do note that at ssh_config and sshd_config (@Mac) the line XAuthLocation /opt/X11/bin/xauth is present
- I uncommented ForwardX11 yes and ForwardAgent yes in ssh_config @Mac
If you will need any more information, please let me know! I really hope somebody could guide me to the right solution!