Skip to content

Instantly share code, notes, and snippets.

@awd
Forked from datwright/gist:1355453
Created December 28, 2011 21:28
Show Gist options
  • Save awd/1529838 to your computer and use it in GitHub Desktop.
Save awd/1529838 to your computer and use it in GitHub Desktop.
SOCKS Proxy for remote FTP server
OH NO! It turns out that simple one-port SSH Tunnels won't work for FTP since it uses another random port to actually transfer data. No problem! SOCKS Proxy to the rescue!
This assumes that you have SSH access to a server that can successfully connect to the FTP server you want access to.
On your local execute (if you have a woople ssh alias setup):
ssh -ND 1234 woople
You'll need an FTP client that supports SOCKS Proxies. I recommend Filezilla. Enter localhost:1234 as your SOCKS proxy server and connect to the FTP server using its regular internet address (as though you were connecting from your production server). SWEEEET!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment