<br><br><div><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Matt Johnston</b> &lt;<a href="mailto:matt@ucc.asn.au" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">matt@ucc.asn.au</a>
&gt; 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>&gt; I'm trying to use remote port forwarding, and have had no success making<br>&gt; dropbear listen on all interfaces on the remote host. I've looked at the
<br>&gt; archives, and found the recommendation to use the -a switch, but that<br>&gt; doesn't seem to do the trick for me.<br>&gt;<br>&gt; ive tried these syntax on the client side (openssh)<br>&gt; ssh -R 2000::3000 superuser@box

<br>&gt; ssh -R 2000:*:3000 ...<br>&gt; ssh -R 2000:&lt;publicNetworkIP&gt;:3000<br>&gt; ssh -R 2000:localhost:3000 ..<br><br>The syntax is &quot;ssh -R port:host:hostport user@hostname&quot;<br>which will forward &quot;port&quot; listening on &quot;hostname&quot; to
<br>&quot;host:hostport&quot; 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-----&lt;public net&gt;-----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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 localhost:3000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>