i am trying to connect, and getting the following exception:
com.jcraft.jsch.JSchException: Auth cancel
    at com.jcraft.jsch.Session.connect(Session.java:451)
    at com.jcraft.jsch.Session.connect(Session.java:150)


this is the relevant code:
            log.debug("starting connect() to IP " + ip.toString());
            JSch jsch = new JSch();
            log.debug("jsch created");
            session = jsch.getSession(userInfo.getUsername(),
ip.getIpString(), Tweaks.getInt("network.port.ssh"));
            log.debug("session acquired from jsch");
            session.setUserInfo(userInfo);
            log.debug("userInfo set");
            session.setPassword(userInfo.getPassword());
            log.debug("password set");
            java.util.Properties config = new java.util.Properties();
            config.put("StrictHostKeyChecking", "no");
            session.setConfig(config);
            log.debug("set StrictHostKeyChecking=no");
            session.setTimeout(connectTimeoutMillis);
            log.debug("connect timeout set to " + connectTimeoutMillis + "
milliseconds");
            //                  session.setPassword(password);
            log.debug("sending session.connect()...");
            session.connect();
            log.debug("session.connect() returned with status: " +
session.isConnected());


username and password are set.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to