"owner-ssh" == owner-ssh  <[EMAIL PROTECTED]> writes:
> Hi Dan,
> Sorry, maybe I misunderstood you.
> 
> Going back to your original question (provided I understood you 
> correctly):
> 
> "I am assuming (this is SSH1, by the way), that it should forward any
> connction to sluf port 110 to raptor port 110.  Is that correct?"
> 
> Here's what I'd do (assuming you're connecting from raptor):
> 
> # ssh -l username -L 110:sluf:110 sluf
> 
> # ssh [-l username] -L localport:hosttoforwardto:remoteport hosttoconnectto
> 
> In your case, the hosttoforwardto and the hosttoconnectto are the same.
> 
> Does that work?

Also you should note that this brings up a normal ssh connection - if
you close it, the forward connection closes as well. So I forexample
set up a forward by using:

ssh -f -l username -L 110:sluf:110 sluf sleep 2d

Which will ask for passphrase on the foreground, then background
itself and run the sleep program which will sleep for 2 days (GNU
sleep understands 2d, you may need to spell it out).

Also, this might be OpenSSH specific, since I don't remember seeing it
before, the "-g" option is required to allow connections to locally
forwarded ports (such as this, -L) from remote hosts. I do not know if
this is needed in your case or even if it exists in SSH.

-- Naked

Reply via email to