Solved: Re: ssh -X (X11 forwarding) not working from 6.1 to 8.1

perryh at pluto.rain.com perryh at pluto.rain.com
Tue Jul 12 07:10:59 UTC 2011


Mark Felder <feld at feld.me> wrote:

> On Tue, 12 Jul 2011 00:06:33 -0500, Michael Sierchio <kudzu at tenebras.com>
> wrote:
>
> > xauth not in your path?
>
> ssh -Y skips all auth stuff so you don't need xauth; he said that
> didn't work either :-(

Well, apparently, even -Y needs xauth (which was not installed on
the 8.1 system) on the ssh server -- although not on the ssh client.
After installing it:

  $ ssh -Y fbsd81 'echo DISPLAY=%$DISPLAY%'
  /usr/local/bin/xauth:  creating new authority file /home/perryh/.Xauthority
  DISPLAY=%localhost:10.0%

and -X also works :) so this turns out to have been the solution.

Next question:  shouldn't I have gotten some kind of error message
when attempting "ssh -X" or "ssh -Y" when xauth wasn't available?


More information about the freebsd-questions mailing list