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

I needed to install X on a remote fedora machine, and then use my local machine as the X server over ssh. Compiling & installing X went smoothly, but I got the following error when running ssh -X (with -v for debug output) to the remote machine:

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

I figured /usr/X11R6/bin needed to be in the path, but modding the path in .bash_profile, /etc/ssh/sshrc, or similar places had no effect.

It turns out that sshd has a hard wired idea of where xauth is supposed to be:

$ strings /usr/sbin/sshd|grep xauth
/usr/bin/xauth
xauthlocation
maxauthtries
No xauth program; cannot forward with spoofing.

So there you are - the solution is simple:

# ln -s /usr/X11R6/bin/xauth /usr/bin/xauth

2 comments for this post.

  1. Comment from Brolin Empey | 20 November 2007 | 9:26 pm :

    The name of this category, “x windows”, is incorrect. The correct name for X is the “X Window System”. See the X(7) man page.

  2. Comment from Nedko Arnaudov | 25 January 2008 | 4:30 pm :

    Thanks! Very useful!

Leave your comment...

Powered by WP Hashcash

Blog Archives

Navigation


About this blog

A blog about Ruby, Rails and other tech. Mostly.


Find Something?