[TriLUG] SSH question ( 14th )

Joseph S. Tate via TriLUG trilug at trilug.org
Mon Jun 14 16:09:08 EDT 2021


I don't see anyone suggesting the correct solution:

ssh -L localhost:8080:C:80 me at B

http://localhost:8080

The initial localhost is implied, and the remotehost is relative to the ssh
server.

On Mon, Jun 14, 2021 at 2:54 PM Brian McCullough via TriLUG <
trilug at trilug.org> wrote:

> On Mon, Jun 14, 2021 at 12:38:33PM -0400, Triangle Linux Users Group
> discussion list wrote:
> > Apologies if I missed why this wouldn't work. I've only quickly scanned
> the
> > thread, but thought of an idea that might be helpful.
> >
> > For situations like this, I generally use ssh's -D option. The invocation
> > usually goes something like:
> >
> > $ ssh -D localhost:8080 user at B
> >
> > Then I configure my browser to use localhost:8080 as a SOCKS proxy. Now
> > connections that I make with that browser all go through machine B.
>
> Just to make sure that I am doing this correctly.
>
>
> In "A", I issued: ssh -D localhost:8080 me at B
> I then opened Firefox, went to Network Settings and told it that I
> wanted to Manually set the Proxy Settings.  I went to the SOCKS ( 5 )
> field and told it that the host name was "localhost" and the port was
> 8080.
> I then went to the address bar, and entered "http://B/u/r/l" and got the
> result that I expected, not a surprise.
> Finally, I went to the address bar, and entered "http://C/u/r/l" and got
> a 504 Gateway Timeout.
>
>
> Did I do everything correctly ( apparently ), and should I continue
> trying to configure mod_proxy on B?
>
>
>
> Thanks,
> Brian
>
>
> --
> This message was sent to: Joseph Tate <dragonstrider at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  :
> https://www.trilug.org/mailman/options/trilug/dragonstrider%40gmail.com
> Welcome to TriLUG: https://trilug.org/welcome



-- 
Joseph Tate


More information about the TriLUG mailing list