Monday, February 17, 2014

not creating .Xauthority file


$HOME/.Xauthority is created on first login for X11 applications to work.

This is problem was noticed on
Red Hat Enterprise Linux Server release 6.4 (Santiago)


Edit /etc/ssh/sshd_config as below

#AddressFamily any 
AddressFamily inet

Restart sshd
# service sshd restart
Stopping sshd:                                           [  OK  ]
Starting sshd:                                             [  OK  ]

Result:
login as: pkg
Using keyboard-interactive authentication.
Password:
Last login: Wed Feb 12 17:31:43 2014 from l4612554.federated.fds
Kickstarted on 2014-02-06
/usr/bin/xauth:  creating new authority file /home/pkg/.Xauthority


I don't have much details on this but it seems like
Disabling IPv6 requires restricting the sshd address family to IPv4 by specifying value "inet".

2 comments:

Anonymous said...

This was really helpful, thank you so much..

Rok Banko said...

3 years pass and still you help someone. Thank you