Re: port forwarding
From: Robert Hajime Lanning (robert.lanning_at_gmail.com)
Date: Thu, 2 Dec 2004 16:27:53 -0800 To: firstname.lastname@example.org
no, he has the direction right.
"l" has direct access to "w" (database). "r" is remote somewhere with
He is on "l", ssh'ing to "r" to run the client utilities on "r", that
need the tunnel
back to "l", so it can talk to "w".
I think his issue maybe that the client utilities are trying to
connect to a well
known port (1521), while he has ssh listening on 11523.
On Thu, 2 Dec 2004 14:42:53 -0500 (EST), email@example.com <firstname.lastname@example.org> wrote:
> > I want to access the database on w from r. There is no direct connection
> > between w and r. I only have a ssh tunnel from r to l.
> > To establish the connection, I startet a ssh connection to r on l and
> > forward port 11523 on r to port 1521 on w:
> > ssh -v r -R 11523:w:1521 -g -N
> > Trying to use the oracle tools on r, I cannot get the connection to w.
> > But it should work. :-)
> -R vs. -L determines which "end" is forwarded. -L forwards connections to
> ports on the local machine, transforming them into connections to what you
> specify in the forward.
> If I understand correctly, what you want to do is:
> ssh -v r -L 11523:w:1521 -g -N
> and then point your oracle tools to localhost as the database.
-- END OF LINE -MCP