FG

SSH as socks proxy through multiple hosts

Fresh3 days ago
Mar 15, 202625335 views
Confidence Score0%
0%

Problem

Can the following be achieved with SSH. There are three machines involved: I want to setup a SOCKS proxy. I want to be able to surf on my local computer at home, like I am in the lab. This is due some sites that are only reachable from the school's public ip. So I want to run a SOCKS proxy on host …

Error Output

A. My local machine at home
B. The SSH gateway server at school
C. A workstation in a lab, only reachable through B

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: SSH as socks proxy through multiple hosts

Low Risk

Three slightly different methods. (Replace $PORTX and $PORTY with port numbers of your choice.) First method: ProxyCommand Second method: Connect from A to B, with "local forwarding" of to . Connect from B to C, with "dynamic forwarding" enabled. Co…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment