Greetings.

For the next several weeks, our office has to use an ISDN connection 
over which we have very little control.  The modem/router uses NAT with 
no port forwarding capabilities, so an inbound SSH connection isn't 
possible.

We do maintain one Linux machine with a "real" IP address outside of our 
office, so I'd like to use that machine to provide inbound connections 
over an SSH tunnel, but so far my efforts aren't working.

Here's what I've tried.  From a machine on our internal net, as root:

ssh -v -g -L 22:localhost:2000 $OUTSIDE-HOST

...thinking that this would allow connections on port 2000 of the 
outside host to be forwarded to port 22 of the internal machine.  But 
apparently this doesn't work, because I get a "bind: address already in 
use" error.

What am I doing wrong?  I've gotten similar things to work using web 
servers and such, is there something unique about SSH?  Or do I have the 
command line wrong?

Reply via email to