When faced with these errors, it most probably means your X11 forwarding authorization is not set up (or messed up).
You will need to manually authorize X11 forwarding.
Here are the steps
`xauth list` --> this cmd will list out all the currently authorized list. They are 3 columns, and in the following format:
dpyname protoname hexkey
<dpyname> = this is your session, and can be gotten by running `echo $DISPLAY`
<protoname> = MIT-MAGIC-COOKIE-1
<hexkey> = can be generate thru `mcookie`
Here's the real example of the above mentioned steps:
>echo $DISPLAY
ascca05411310.sc.amd.com:5.0
>xauth add ascca05411310.sc.amd.com:5 MIT-MAGIC-COOKIE-1 e0ec4a52c92cf4c5d0798780eead4515
Test and see if it works now, run `xclock`.