Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to ssh with X11 forwarding into a host where I don't have a home directory. Because of that, xauth fails and X11 doesn't seem to work. I tried to specify a home-directory in advance but I guess it doesn't export env-vars to the host.

zeyer@demeter:~> HOME=/tmp ssh ares -XY
Password: 
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Mon Mar 28 11:52:57 2011 from demeter.matha.rwth-aachen.de
Have a lot of fun...
Could not chdir to home directory /home/zeyer: No such file or directory
/usr/bin/xauth:  error in locking authority file /home/zeyer/.Xauthority
zeyer@ares:/>

Is there any trick I can make the X11 forwarding work? I still have write access to /tmp. But I am not sure how to setup the xauth fake authentication data manually.

share|improve this question
3  
Surely you should be asking yourself (or even the system admin) why you don't have a home directory... –  Majenko Mar 28 '11 at 10:04
    
@Matt: I didn't needed one so far on that PC and for some reason it hasn't mounted our NFS home. But now I need to test some application on it. –  Albert Mar 28 '11 at 10:10
    
Xauth-without-$HOME can be set up by writing a special /etc/ssh/sshrc script, but requires root privileges. –  grawity Aug 28 '12 at 10:59

1 Answer 1

Did you try ssh ares -XY "HOME=/tmp bash"?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.