Frequently Asked Questions

« Previous
How do I access PCFS over SMB using smbclient?
Next »
What is Rrsync (restricted rsync)? How do I access PCFS storage over rsync?

windows windows 10 ubuntu macos xibo network zenworks android storage

22. How do I use port forwarding and SOCKS-proxy in SSH?

Let us assume that there is a service on a server listening to a local port 8787.

Port forwarding using PuTTY in Windows

"c:\Program Files (x86)\PuTTY\putty.exe" -L 8787:localhost:8787

PuTTY can of course also be configured using the GUI.

Port forwarding using OpenSSH in Linux and macOS

ssh -L 8787:localhost:8787

SOCKS-proxy using PuTTY in Windows

Also be aware that you can use PuTTY and OpenSSH as a SOCKS-proxy which can be used to access arbitrary ports.

"c:\Program Files (x86)\PuTTY\putty.exe" -D 9999

SOCKS-proxy using OpenSSH in Linux and macOS

ssh -D 9999

Acessing the SOCKS-proxy from the web browser

Let your web browswer be configured to use this SOCKS-proxy.

Firefox is configured in Preferences, General and Connection Settings like this:

Chrome can be started with the SOCKS-proxy as a command line argument. This example is in macOS:

open /Applications/Google\ --args --proxy-server="socks5://localhost:9999"


This entry ssh.proxy was last modified 2018-02-21


This documentation is covered by GNU Free Documentation License.