Results 1 to 1 of 1
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 Code: ssh ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-21-2013 #1
- Join Date
- Feb 2011
Ruby Net::SSH question
Occasionally, I use
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?