Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2713

Re: X client forwarding

From Clark Smith <noaddress@nowhere.net>
Newsgroups comp.os.linux.networking
Subject Re: X client forwarding
Date 2014-02-10 17:58 +0000
Organization albasani.net
Message-ID <ldb40f$9i6$2@news.albasani.net> (permalink)
References (5 earlier) <wwvvbwo9sgo.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <ld8v7j$8rn$2@news.albasani.net> <wwvk3d3akte.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <ldamvk$fck$2@news.albasani.net> <wwvy51j80ud.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid>

Show all headers | View raw


On Mon, 10 Feb 2014 15:05:30 +0000, Richard Kettlewell wrote:

> Clark Smith <noaddress@nowhere.net> writes:
>> Richard Kettlewell wrote:
>>> Clark Smith <noaddress@nowhere.net> writes:
>>>> Richard Kettlewell wrote:
> 
>>>>> Is $DISPLAY set on A?
>>>>
>>>> Yes. How is that relevant though? I just want to start an X
>>>> application in B, and have its output sent to the X server on A.
>>> 
>>> The ssh client on A needs to know what X server to connect to.
>>
>> 	You lost me here. A connects into B by ssh. An X application is
>> started on B. The output from this application is to be sent to the X
>> server running on A.  Is A connecting to any X server?
> 
> Yes.  The communication looks, very roughly, like his:
> 
>  +---------------------------+        +----------------------------+ | A
>                          |        | B                          | | X
>  server <--> ssh client <----------> ssh server <--> X client  |
>  +---------------------------+        +----------------------------+

	This is turning out to be much more involved than I thought. 
Let's see if I understand it correctly:

	1) In A, for the appropriate user, in .ssh/config we must have a 
line that reads

	ForwardX11=yes

I don't think this is required in B, right?

	2) In B, the ssh server must be configured explicitly to allow X 
forwarding with

	X11Forwarding yes

in /etc/ssh/sshd_config.

	3) In B we must make sure that the DISPLAY environment variable 
for the relevant user is not set in any way in the login scripts 
(.bash_profile, .bashrc, etc.)

	4) When ssh'ing from A into B we must use the -X or -Y option; it 
would seem that -X does not always work.

	5) In A the DISPLAY variable in the shell from which the ssh 
command must be set equal to - what?

	Am I still missing something here?

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-08 22:05 +0000
  Re: X client forwarding Richard Kettlewell <rjk@greenend.org.uk> - 2014-02-08 22:11 +0000
    Re: X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-09 01:58 +0000
      Re: X client forwarding Bit Twister <BitTwister@mouse-potato.com> - 2014-02-09 03:08 +0000
        Re: X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-09 04:13 +0000
          Re: X client forwarding Bit Twister <BitTwister@mouse-potato.com> - 2014-02-09 05:53 +0000
      Re: X client forwarding Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-02-09 07:38 +0000
        Re: X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-09 15:59 +0000
          Re: X client forwarding Richard Kettlewell <rjk@greenend.org.uk> - 2014-02-09 16:11 +0000
            Re: X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-09 22:24 +0000
              Re: X client forwarding Richard Kettlewell <rjk@greenend.org.uk> - 2014-02-10 00:11 +0000
                Re: X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-10 14:16 +0000
                Re: X client forwarding Richard Kettlewell <rjk@greenend.org.uk> - 2014-02-10 15:05 +0000
                Re: X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-10 17:58 +0000
                Re: X client forwarding Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-02-10 18:46 +0000
                Re: X client forwarding Richard Kettlewell <rjk@greenend.org.uk> - 2014-02-10 18:59 +0000
          Re: X client forwarding Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-02-09 16:25 +0000
            Re: X client forwarding Clark Smith <noaddress@nowhere.net> - 2014-02-09 22:23 +0000
  Re: X client forwarding Chris Davies <chris-usenet@roaima.co.uk> - 2014-02-08 22:35 +0000
    Re: X client forwarding Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-02-08 23:19 +0000

csiph-web