X11forwarding in ssh

Kurt Wall kwall
Tue Sep 20 08:24:29 PDT 2005


On Tue, Sep 20, 2005 at 07:34:50PM +0800, Man-wai Chang took 17 lines to write:
> 1. Is the file /home/user/.Xauthority created by sshd whenever I login?

No. It's created by X if it doesn't exist.

> 2. X11forwarding works automatically after logging in via ssh, but after
> I ran su, it would fail.  I had to manually set the environment variable
> to /home/login-user/.Xauthority to get it working. Is there an automatic
> way to do it?

ssh -Y or ssh -X depending on the SSH version you have. Make sure 
X11Forwarding is enabled in /etc/ssh/sshd_config.

Kurt
-- 
Air is water with holes in it


More information about the Linux-users mailing list