Greetings. Sorry to keep posting about this but I'm not getting much
response and this _seems_ like it should be a pretty straightforward issue.
I want to use ssh to connect a non-routable subnet to a routable
Internet host, such that connections to a particular port on the
Internet host are forwarded to a host on the non-routable net.
I'm using this command line, on a machine on the internal net:
ssh -v -g -R 2345:localhost:22 $REMOTEHOST
As I read this command line, a connection to port 2345 on $REMOTEHOST
should act like a connection to port 22 on the machine that initiated
the ssh connection. But there's no mention of any port being forwarded
in the ssh debugging output, and attempts to connect to port 2345 on
$REMOTEHOST come back "connection refused".
Can somebody please tell me what I'm doing wrong? I'm starting to get
desperate, and my users are starting to get angry.
I'm using OpenSSH 2.1.1, on Red Hat 6.2 and Red Hat 7.