you need to set root XAUTHORITY to the .Xauthority file of the a/c you ssh into..
Dave. On Sat, 27 Sep 2003, Mike Lake wrote: > Hi all, > > Now that Jill has 'upgraded' to Debian and it matches my Alpha's Debian > it seems our systems are a little more careful of security than her old > SUSE and I am having probs with logging in as root and editing with vi > over X. > > I (mikel) am on machine martel and I ssh as user caves to machine tazieff. > I can use vim and xeyes etc as X forwarding is set to yes in > /etc/ssh/ssh_config > Often I need to edit a config file and su root but then I cant use vi as > I get: > X11 connection rejected because of wrong authentication. > X connection to localhost:10.0 broken (explicit kill or server > shutdown). > > If I ssh to tazieff as myself i.e. mikel then su root then I can start > vi as the connection is forwarded fine. > > If I ssh to tazieff as root (as I have enabled root login) I can use vi > but I prefer to just su root when required from being user caves. > > I could login as mikel to tazieff and then su root but I ma not doing > anything as mikel so find that a bit silly. > > Reading the man pages for ssh_config and sshd_config there do not seem > to be any obvious settings that I should change. I think it is something > to do with authentication rather than X forwarding. > > Mike > > > -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / [EMAIL PROTECTED] pam_smb / Linux DECstation / Linux VAX / ILUG person -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
