Skip to content

Instantly share code, notes, and snippets.

@datwright
Created November 10, 2011 17:14
Show Gist options
  • Save datwright/1355453 to your computer and use it in GitHub Desktop.
Save datwright/1355453 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:
ssh -ND 1234 tony@ssh.whatever.com
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