The “No xauth program; cannot forward with spoofing” error message occurs when you are trying to use X forwarding over SSH and the xauth
program is not installed or not found on the remote system. X forwarding allows you to run X applications on a remote system and display the output on your local system.
To resolve this error, you need to install the xauth
program on the remote system. Here’s how you can do that on a few popular Linux distributions:
- On Ubuntu and Debian-based systems, you can install
xauth
using the following command:
sudo apt-get install xauth
- On Fedora and CentOS-based systems, you can install
xauth
using the following command:
sudo yum install xauth
- On SUSE-based systems, you can install
xauth
using the following command:
sudo zypper install xauth
Once you have installed xauth
, you should be able to use X forwarding over SSH without encountering the “No xauth program; cannot forward with spoofing” error.