Since the
post was marked [solved] I thought of creating a new post.
Ok. I agree deleting .Xauthority files work, but thats not a good solution. I mean, everytime I have to run any X forwarding application I have to delete the .Xauthority file. Here is my scenario
The applications that I want to run are on Linux Server [NFS] and the client machines [CIFS] that are having problem in locking the .Xauthority files are Macs which share the same domain as that of client solaris machine. i.e. The home directory of particular user on Solaris & the home directory of that user on Mac have same contents.
When I ssh -X from Solaris to the server, everything works fine, no error messages.
When I ssh -X from MACs to the server, I get the following warning messages.
Code:
/usr/X/bin/xauth: error in locking authority file /home/user/.Xauthority
/usr/X/bin/xauth is the path on the server. If I try to break the lock by
sudo /usr/X/bin/xauth -b quit, I get the following error
Code:
xauth: timeout in locking authority file /home/user/.Xauthority
When I ssh -X from any my MacBookPro to the server,
Code:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
I have checked sshd_config on both the server and the Mac clients, there is nothing that seems wrong, but if you guys have insights then please share