- Warning: untrusted X11 forwarding setup failed: xauth key data not generated. Warning: No xauth data; using fake authentication data for X11 forwarding. X11 forwarding request failed on channel 0 735 May 27 22:39:54 lastlogperformlogin: Couldn't stat /var/log/lastlog: No such file or directory.
- Jun 07, 2018 debug1: No xauth program. Warning: untrusted X11 forwarding setup failed: xauth key data not generated. SSH can't generate the auth info. The other thing that for working the SSH X11 forwarding isn't necessary, if an ssh server has a secure data connection to a client (for example, if Linux is local and running inside a virtual machine).
![Setup Setup](https://www.unixtutorial.org/images/Screen-Shot-2019-01-20-at-22.40.22.png)
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. Warning: untrusted X11 forwarding setup failed: xauth key data not generated X11 forwarding request failed on channel 0 message when opening a connection with ssh -X, and when I. If you run ssh and DISPLAY is not set, it means ssh is not forwarding the X11 connection. To confirm that ssh is forwarding X11, check for a line containing Requesting X11 forwarding in the ssh -v -X output. Note that the server won't reply either way, a security precaution of hiding details from potential attackers.
Untrusted X11 Forwarding Setup Failed Xauth Key Data Not Generated In 2016
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!
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!