X connection through router and firewall

From: Sourin (sourin_at_lycos.com)
Date: 06/11/04

  • Next message: Cameron Kerr: "Re: X connection through router and firewall"
    Date: 11 Jun 2004 14:01:10 -0700
    
    

    Hello all,
    I am having problem in establishing an X connection with my work
    machine. Let me explain the situation in some more detail. All
    machines are running linux.

    My computer at work is behind a firewall. So, when I need to connect
    to it I have to ssh to hostA (firewall), which upon successful
    authorization, it connects me directly to hostB on my office network.
    If -X option is used with ssh, hostB tries to set its DISPLAY variable
    to hostA's display, which fails.

    At home I am using a DSL connection with a router. My home machine
    gets a static IP from the router. I have set my router to forward port
    22 to my machine and ssh connection to my home machine works fine. If
    I do ssh -X from my home machine to hostC ( which is on some other
    network and not behind any firewall ), I can open any X client on
    hostC successfully. Also I can open a sshed X connection on hostB from
    hostC after proper xauthorization ( hostB and hostC are on different
    network).

    I tried to forward the display port on hostB to my home machine port
    6000 using ssh -R option, but X server on my home machine is refusing
    that connection ( my router is also forwarding port 6000 ). I have
    added hostB's xauth magic key to my home machine's xauth list.

    Any suggestions.

    Thanks in advance.


  • Next message: Cameron Kerr: "Re: X connection through router and firewall"

    Relevant Pages

    • Re: remote sshd problems
      ... > I am trying to access my home machine from work - it works fine at ... > I then killed the ssh dameon, restarted xinetd, and restarted ssh to ... I use standard port 22: ... Can you get a connection with your port on that machine? ...
      (alt.os.linux.suse)
    • X connection through router and firewall
      ... If -X option is used with ssh, hostB tries to set its DISPLAY variable ... At home I am using a DSL connection with a router. ... 22 to my machine and ssh connection to my home machine works fine. ...
      (comp.os.linux.networking)
    • X connection through router and firewall
      ... If -X option is used with ssh, hostB tries to set its DISPLAY variable ... At home I am using a DSL connection with a router. ... 22 to my machine and ssh connection to my home machine works fine. ...
      (comp.os.linux.misc)
    • Re: service redirect ?
      ... > the firewall to connect to all the services on my home machine. ... you could use SSH to forward the needed ports. ... VPN connection to your home machine through this port. ...
      (comp.os.linux.networking)
    • Re: What is The SSH?
      ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
      (microsoft.public.windows.server.networking)