Xauth Key Data Not Generated Mac

One Server: OSX Server Yosemite, one Mac client, also on Yosemite.

Nov 08, 2018  Question: Q: Warning: untrusted X11 forwarding setup failed: xauth key data not generated I'm trying to use X11 forwarding with ssh from my Mac (macOS 10.14 Mojave). I have XQuartz (2.7.11) installed, but when I do ssh -X hostname to a linux host I get the error. 当我在我的Mac上运行ssh -X(运行OS X 10.6.7)连接到我的Ubuntu(11.04)框时,我收到以下警告: Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X1. Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. The xauth call seems to fail, so I tried (not knowing if thats the right way to solve this.).

Latest updates installed.

How To Install Xauth

/15-key-strategies-for-marketing-to-different-generations.html.

- I am able to connect from the client to the server by ssh.

- What I cannot do is connect with X11 forwarding.


I try this:

ssh -Y jwar@luna.delarte.nl

and get:

X11 forwarding request failed on channel 0


Xauth Key Data Not Generated Mac Download

I edited etc/sshd_config

X11Forwarding yes

X11DisplayOffset 10

X11UseLocalhost no


I have done this with Linux for years. The client Mac can connect to Linux servers and use X11 forwarding.So the client Mac is basically ok.


Is it possible to use X11forwarding on an OSX Server? How to do it?

Posted on

Hi Rod and all,
Thank you so much for your help. I tried what you've suggested. It works! I am so happy for that. But there is still some warnings.
What I've done as below:
My redhat is a new server running redhat enterprise server 6. There isn't ssh2_config file. So like what I did yesterday, I uncommented a line contains 'X11Forwarding yes' in sshd_conf.
Back to Mac, in terminal, type 'xterm&'. In a X terminal, using ssh login to redhad, as Rod suggested. I can login but got two warnings:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Although I got those warnings, I still typed xterm& and opened a new xterm which comes from redhat. Then try 'xclock&'. It displayed!! So great!
Now, I have an other question. I opened 'firefox' from xterm. Firefox was also booted up, but the letters on menu and top bar were blurred. And the warnings I got were:
Xlib: extension 'RANDR' missing on display 'localhost:10.0'.
Xlib: extension 'RANDR' missing on display 'localhost:10.0'.
Xlib: extension 'RANDR' missing on display 'localhost:10.0'.
Have you ever met such problem?
This is a new problem. But I already feel so happy that you help me solved a problem which had bothered me for more than three days! Thanks all your help!