Okay -- I'll distill my question then.

Does the "-R" option actually do anything under OpenSSH?  Note that I am 
accompanying it with the -g option.

We're using version 2.1.1p4-1, installed from RPM on a Red Hat 7 machine 
at the client side; on the server side we're running Red Hat 6.2 with 
OpenSSH 2.2.0p1.

I don't get any errors; at least nothing that I recognize as such; I 
just don't get the behavior I expect, and my users are starting to get 
antsy for outside access.

Thanks for any help,
-m


Rolen, Mark E. wrote:

> Ah, given the -R, then your ports were right  :)   I was assuming you were
> running the command on the outside host, since you used -L
> 
> nevermind  :)
> 
> -----Original Message-----
> From: Michael R. Jinks [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 20, 2000 2:15 PM
> To: ssh
> Subject: port forwarding, remote to local
> 
> 
> 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