ssh -X remote does not work due to problem with xauth

Christian Weisgerber naddy at
Wed May 9 14:20:09 UTC 2018

On 2018-05-09, Matthias Apitz <guru at> wrote:

> When I launch 'ssh -X remote host' to get X11 forwarded to my workstation
> this does not work, i.e. does not produce a DISPLAY env on the remote
> host and says:

Is X11Forwarding enabled in /etc/ssh/sshd_config on the remote host?

> $ ssh -X apitzm at srap16dxr1
> Warning: untrusted X11 forwarding setup failed: xauth key data not generated

That's exactly the error you get if X11Forwarding is off on the
remote host.

Christian "naddy" Weisgerber                          naddy at

More information about the freebsd-questions mailing list