Re: Port forwarding more than once

From: Dave Markham (dave.markham_at_fjserv.net)
Date: 01/14/04

  • Next message: Dave Markham: "Re: Port forwarding and PC listening question"
    To: "Dave Howe" <DaveHowe@cmn.sharp-uk.co.uk>, "Email List: Secure Shell" <secureshell@securityfocus.com>
    Date: Wed, 14 Jan 2004 14:04:13 -0000
    
    

    I do this also through ssh and tunnel more than once.
    The key is to use ssh -X

    E.g

    localhost: ssh -X -l <user> machinea

    machinea: ssh -X -l <user> machineb

    machineb: /usr/openwin/xclock &

    should then work providing u got x forwarding set in
    /usr/local/etc/sshd_config, and that you have x server on your localhost

    Hope this helps

    Dave
    ----- Original Message -----
    From: "Dave Howe" <DaveHowe@cmn.sharp-uk.co.uk>
    To: "Email List: Secure Shell" <secureshell@securityfocus.com>
    Sent: Monday, January 12, 2004 6:49 PM
    Subject: Re: Port forwarding more than once

    > Rachan Malhotra wrote:
    > > I want to create a long SSH tunnel running from my laptop to one
    > > server and from there to another. Also, I want to forward port x on
    > > my machine to the 1st server and then to the 2nd server through this
    > > tunnel. Is it possible to create an SSH tunnel among three (or more)
    > > machines ?
    > yup, but it may be better not to.
    > the two alternatives are:
    > 1. make a tunnel from your port to server 1, destinatiation server 2 port
    > x (obviously, the link between server 1 and 2 is unencrypted, but that may
    > not be an issue)
    > 2. use a simple port forwarder on server 1 that relays connections to
    > server 2 port 22; then tunnel to server 1 on the port you are running the
    > forwarder on, and it will effectively open a ssh link (and therefore any
    > tunnels) on server 2.
    >
    > That said, I am in fact doing your original solution - ssh to my corporate
    > firewall, with tunnels to my mailserver and my desktop pc (both port 22)
    > then tunnels from there to various other machines via the first set of
    > tunnels.
    >


  • Next message: Dave Markham: "Re: Port forwarding and PC listening question"

    Relevant Pages


  • Quantcast