[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh and X11Forwarding

Sorry to reply in this way, but I'm not subscribed to the debian-users
list. Use Cc:

Please read my full mail, see below. PermlitRootLogin has nothing to
do with the problem when using su! When using su you login as an
ordinary user and then become root at the remote box. When permitting
RootLogin you are already root at the local box when logging in to the
remote box. X works for this setup, but I prefer not to use it if not necessary.

Following is part of the debug output when connection is refused. For a
successful session, as non-root, the debug output stops with confirm
x11, and emacs starts.
> emacs
debug1: client_input_channel_open: ctype x11 rchan 3 win 4096 max 2048
debug1: client_request_x11: request from 32777
debug1: fd 8 setting O_NONBLOCK
debug1: fd 8 IS O_NONBLOCK
debug1: channel 2: new [x11]
debug1: confirm x11
----------------successful login-------------------
debug1: X11 connection uses different authentication protocol.

How to find out of the different authentication protocols used for X11?
The local box is running redhat/rawhide and the remote box

Svante Signell writes:
 > When ssh-ing to a computer in my small LAN as a normal user and using
 > X applications, such as emacs, everything works OK. Howver, with su to
 > root on the remote box X is refused: Connection lost to X server`host:11.0'
 > Is the solution to be found with the X server or ssh/sshd?
 > X11Forwarding is enabled and Rootlogin disabled in the remote sshd and
 > X11Forwarding enable on the local ssh.
 > X has been working before, so probably some config files have changed
 > recently (I'm running sid/unstable). Openssh versions are 2.9p2.

Reply to: