rapid7/metasploit-framework — pull request #687 by sempervictus (2012-08-12 20:09:57+00:00)
Title: This commit allows ssh_login to use socks proxies.

Net::SSH::Transport::Session could take a :proxy option, but it expects a factory object not a string, when setting :proxy => datastore['Proxies'] user got: "Auxiliary failed: NoMethodError private method `open' called for \"socks4:localhost:1080\":String."

VALID_OPTIONS in ssh.rb now accepts :proxies option which is passed to the Rex socket in Net::SSH::Transport::Session.new.

Testing: block all outgoing to SSH server, try to connect with a proxy. Try with :proxy option,
then merge this pull request and try again (:proxies is now automatically set from the datastore of ssh_login).