Jsch - Proxy

Help
2007-11-05
2013-05-28
  • JairMenezes
    JairMenezes
    2007-11-05

    I want to pass user and password to proxy connection. My application is ok, but I need to implement this feature.

    Thanks,

    Jair Menezes

     
    • Xavier TELLO
      Xavier TELLO
      2007-11-17

      Hello,

      Try with

      ProxyHTTP proxy = new com.jcraft.jsch.ProxyHTTP("host", 20);
      proxy.setUserPasswd("login", "passwd");

      Session session = new com.jcraft.jsch.Session(...);
      session.setProxy(proxy);

       
      • JairMenezes
        JairMenezes
        2007-12-17

        Thanks for your attention.

        My problem is with socks5 and ntlm authentication without user intervention, any suggestion?

        Jair Menezes