<br><br><div><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Matt Johnston</b> <<a href="mailto:matt@ucc.asn.au" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">matt@ucc.asn.au</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Sep 11, 2006 at 07:31:30PM +0200, Alex Still wrote:<br>> I'm trying to use remote port forwarding, and have had no success making<br>> dropbear listen on all interfaces on the remote host. I've looked at the
<br>> archives, and found the recommendation to use the -a switch, but that<br>> doesn't seem to do the trick for me.<br>><br>> ive tried these syntax on the client side (openssh)<br>> ssh -R 2000::3000 superuser@box
<br>> ssh -R 2000:*:3000 ...<br>> ssh -R 2000:<publicNetworkIP>:3000<br>> ssh -R 2000:localhost:3000 ..<br><br>The syntax is "ssh -R port:host:hostport user@hostname"<br>which will forward "port" listening on "hostname" to
<br>"host:hostport" via your local ssh-running machine (so<br>'localhost' means the machine you're currently running on,<br>and the first two make no sense). What are you trying to<br>forward to/from?</blockquote>
<div><br>I'm trying to do this :<br><br>baculaserver-----router1-----<public net>-----router2-----laptop<br><br>Baculaserver and laptop are NAT'ed on their respective network. What im trying to do is SSH from laptop to router1 (running dropbear) and remote forward a port from there back to the laptop running the bacula client. That's why I need the remote forwarding to work on all interfaces on router1.
<br><br>From laptop : ssh -R 3000:localhost:2000 alex@router1<br>On router I see :<br>netstat :<br>tcp 0 0 localhost:3000 *:* LISTEN<br><br>I hope this is more clear and that i haven't missed anything obvious ! Cheers ,
<br><br>-- <br>Alex<br></div><br></div><br>