Re: X11-Forwarding from third machine

From: Per Hedeland (per@hedeland.org)
Date: 11/13/02

  • Next message: Håkan Stensby: "UseLogin yes causes users to login twice (OS:TrustedIrix)"

    From: per@hedeland.org (Per Hedeland)
    Date: Tue, 12 Nov 2002 23:43:37 +0000 (UTC)
    
    

    In article <3DCEDC2D.8060605@yahoo.de> Sean Durkin <eumelnase@yahoo.de> writes:
    >
    >First, a little ASCII-art, I'll explain further below:
    >
    > |
    >------------- SSH | ------------- X11 -------------
    >| Host A |<=======> | Host B |<=====> | Host C |
    >------------- only | ------------- only -------------
    > network seperated | running X-
    > by firewall | apps

    [snip]

    >Of course, this does not work, since Host C does not supply the correct
    >magic cookie for the X authentification to work (C is allowed to connect
    >to B via xhost +, though).

    xhost only pertains to what connections the actual X server allows, and
    in this case the connection is always coming from the local host (from
    the ssh client running there), so you can't allow C anything with it.
    And as far as I know there is no way to make sshd (on host B here)
    accept non-authenticated connections (it does the cookie authentication
    itself, with a cookie it has generated locally - the X server is not
    involved).

    >How can I get this working? Or does anyone have any other ideas? I do
    >not have the neccessary privileges to set up a port-forwarder or
    >something like that on Host B, so that is out of the question.

    Why would you need privileges for that? Or do you mean non-technical
    privileges?:-) Anyway that's the only thing I can think of that would
    make it work. Not really a port-forwarder, but an "X-aware tcp-
    forwarder" running on host B, a little proggie that would accept a plain
    TCP connection on some 6000+ port, and turn around and do a proper X
    connection.

    If you search the net for 'xconns' - or maybe 'mxconns' (I have used the
    former in the distant past, but can only find the latter right now) -
    you may find just the thing. In fact it may even add a bit of security
    to the above setup, which otherwise forces you to open up your X server
    to the world - needless to say, this is a Very Bad Idea.

    --Per Hedeland
    per@hedeland.org



    Relevant Pages

    • understanding chkrootkit: sshd section
      ... Rhosts Authentication disabled, originating port will not be trusted. ... Secure connection to %.100s on port %hu refused%.100s. ... Warning: Remote host refused compression. ... Received RSA challenge from server. ...
      (comp.os.linux.security)
    • understanding chkrootkit: sshd section
      ... Rhosts Authentication disabled, originating port will not be trusted. ... Secure connection to %.100s on port %hu refused%.100s. ... Warning: Remote host refused compression. ... Received RSA challenge from server. ...
      (comp.security.unix)
    • Re: Possible BUG: Multiple HTTPrequests send from one includetext statement
      ... different program or Word converter to get the file. ... > fetched from a server via a HTTPRequest. ... > Host: localhost:8290 ... > Connection: Keep-Alive ...
      (microsoft.public.word.mailmerge.fields)
    • Re: Kerberos error KDC_ERR_BADOPTION
      ... Ran the same test again using the IP instead of the host name and got this: ... Reusing existing connection \n ... Server: Microsoft-IIS/6.0\r\n ... I suggest you use webfetch to perform a test and trace the rawdata of http ...
      (microsoft.public.inetserver.iis.security)
    • Re: Befuddled by DNS
      ... >serving as the router using a ppoe connection to dls with a static public ip. ... You need a blank host record in your external DNS for the mydomain.net ... Do I understand correctly that you have a server, ...
      (microsoft.public.windows.server.dns)

  • Quantcast