Monday, April 13, 2015

SSH warning: untrusted X11 forwarding setup failed:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated.
Warning: No xauth data; using fake authentication data for X11 forwarding.

solution:- 

# vim /etc/ssh/ssh_config

Host *
        CheckHostIP             no
        ForwardX11              yes
        ForwardX11Trusted       yes      <-- Add this line
        ForwardAgent            yes
        StrictHostKeyChecking   no
        UsePrivilegedPort       no
        Protocol                2,1
        HostbasedAuthentication yes
        EnableSSHKeySign        yes

:wq (save and exit)

# service sshd restart

1 comment:

  1. Instead of adding ForwardX11Trusted (which means you trust the remote host, so sort of a security hole):
    1/ enable xauth (on XQuartz it means enabling authenticated connections in the security tab of the preferences pane)
    2/ indicate xauth location to ssh if it is not in /usr/X11R6/bin (on XQuartz it is in /opt/X11/bin)

    ReplyDelete