Re: Binding ssh to a loopback address

From: Darren Tucker (
Date: 05/07/05

  • Next message: Darren Tucker: "Re: remote ssh for root"
    Date: Sat, 07 May 2005 15:31:30 +1000
    To: CP Lim <>

    CP Lim wrote:
    > I was trying to forward a remote port to one at local (but not
    > by doing :
    > ssh -b -L80:localhost:80 remotehost

    That's a local forward, but what you're describing is a remote forward.
      I'm assuming the command is correct but the description is wrong
    (since you also said it works w/out the -b.

    Anyway, that command will try to bind the client's end of the SSH
    connection to, so what you're trying to do is make an SSH
    connection from to your remotehost. Sending the connection
    out won't go anywhere (hence the "no route to host" error).

    What you need to do is this:

    ssh -L remotehost

    Darren Tucker (dtucker at
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
         Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.

  • Next message: Darren Tucker: "Re: remote ssh for root"