0

I have imported the project "ant" in eclipse, but I have the problem above in the package org.apache.tools.ant.taskdefs.optional.ssh, in the class SSHBase, for the followings lines of code:

    import com.jcraft.jsch.JSch;
    import com.jcraft.jsch.JSchException;
    import com.jcraft.jsch.Session;

    bla bla bla...

    final Session session = jsch.getSession(userInfo.getName(), host, port);
    session.setConfig("PreferredAuthentications",
            "publickey,keyboard-interactive,password");
    session.setUserInfo(userInfo);
StackUser
  • 587
  • 6
  • 26

0 Answers0