This is a followup to my (rather idiotic) post from earlier today in 
which I was trying to forward an ssh port from a remote machine using 
the "-L" option.  Oops.

But I'm still having trouble.

Background: our temporary internet connection won't allow incoming 
connections of any kind, but we do have a host on the Internet which has 
a real IP and an sshd process running.  I want to initiate an ssh 
connection from our internal net to the outside host, such that a port 
on the outside host is forwarded to the sshd process on one of our 
internal machines.

Now the command line I'm using is this (as root):

ssh -v -g -R 2000:localhost:22 $REMOTEHOST

The command appears to complete successfully, and I end up with a login 
shell on the remote box.  But in the debugging output there is no 
mention of port forwarding, successful or otherwise, other than X 
forwarding, and any attempt to connect to port 2000 on the remote box 
comes back "connection refused".

What might I be doing wrong?

Thanks,
-m

Reply via email to