Ruby Net::SSH question
Hello All, I have some questions about Ruby's Net::SSH library. I haven't made 15 posts yet, so \at\ is supposed to be an at sign.
Occasionally, I use
when I'm on public internet (Starbucks, etc.) to tunnel my traffic through my home so it's encrypted. I would like to automate this process with a Ruby script.
ssh -D 1234 me\at\home
As I understand it, the command I use now starts a SOCKS proxy on the loopback interface, port 1234, then forwards all it's traffic through the open SSH connection. I'm not really sure how I would go about doing this in Ruby.
Right now, I'm using the Net:SSH library and highline (for noecho on the password) I have been able to connect to my home, execute a command, and send back the output, but not much more than that. I have been browsing Net::SSH's method index, but I have not been able to find a method that creates a local SOCKS proxy like the command does. Do I need another library or gem? Can anybody point me in the right direction?