No xauth Program; Cannot Forward With Spoofing Error and Solution

Posted on in Categories , , , last updated March 15, 2017

I want to use my local machine as the X server over ssh. But when I try to run ssh -X -v [email protected] to the remote machine, I get the following error:

debug1: Remote: No xauth program; cannot forward with spoofing

How do I fix this problem and use X over ssh?