Net-ssh-socks is a project mainly written in Ruby, it's free.
An extension to Net::SSH that adds dynamic port forwarding through a SOCKS proxy
Net::SSH::Socks is a library for programmatically creating a SOCKS proxy server that tunnels through SSH. Similar to Net::SSH::Service::Forward#local except the host is dynamic (determined by the client application, such as a browser).
Useful for securing traffic over SSH or getting in/out of a firewall.
require 'net/ssh/socks'
Net::SSH.start('host', 'user') do |ssh|
ssh.forward.socks(8080)
ssh.loop { true }
end
Now, configure your browser to use a SOCKS proxy at localhost:8080
gem install net-ssh-socks