[TriLUG] SSH question ( 14th )

Jack Hill via TriLUG trilug at trilug.org
Mon Jun 14 15:59:31 EDT 2021


On Mon, 14 Jun 2021, Brian McCullough via TriLUG 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.

Yes, it sounds like you did everything correctly, or at least how I was 
thinking. An additional cross check, if B can reach the general internet, 
would be to browse to one of those "what is my IP" pages and verify it 
tells you B's IP.

Best,
Jack


More information about the TriLUG mailing list