Troels Kofoed Jacobsen’s blog


using a ssh proxy with kde
December 1, 2008, 7:07 pm
Filed under: linux | Tags: ,

PROBLEM:
Use ssh socks proxy with kde.

SOLUTION:
Initiate a ssh connection to use for dynamic port forwarding:

ssh -T -D port username@sshserver

If your application supports socks proxies you can use this directly. Firefox can do this. If not, here is a solution: Use privoxy to forward the ssh socks proxy to a http proxy.
First install privoxy for your distribution.
Add the following line in the configfile (/etc/privoxy/config on archlinux)

forward-socks4 / localhost:port .

NOTE: the period, ‘.’, i important. The port should be the one specified when initiating the ssh connection.
Start privoxy and it will start the http proxy on port 8118 (default), which you can configure kde to use in the networking kcm module (and other apps that can use http proxies).

USAGE:
This can be used to secure your otherwise unsecure wifi connection when you are on the road. All you need is access to a ssh server.
This is much easier than using e.g. openvnp.


No Comments Yet so far
Leave a comment



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>