I couldn’t find useful info on SSH proxy setting in mechanize, so I wonder if I can just set the proxy like this:
br = mechanize.Browser()
br.set_proxies{“SSH": "11.11.11.11:22"}
Anybody knows? If this won’t work, how do I make SSH proxy work with mechanize Browser?
Thanks
Hope I understood what you want here:
You can set up a proxy on machine B (http://sourceforge.net/projects/tinyproxy/ is tiny) and then do SSH forwarding.
From machine A:
would establish a proxy on port 7777 on machine A that connects to port 8888 on machine B. If machine B has tinyproxy running on 8888, then you should be all set.