How can I do ssh username@myserver.com -L 3000:171.17.258.16:1500 on a Windows machine using Ruby?
On my Windows machine I am using the rye gem to do a simple connection like:
@rbox = Rye::Box.new(@hostname, :user => @username, :password => @password)
Maybe try checking out the Net-SSH gem?
http://rubygems.org/gems/net-ssh/
http://net-ssh.github.com/net-ssh/
Seems like the
forwardmethod does what you want to do: