This question has already been asked here: "The method setConfig(Properties) in the type Session is not applicable for the arguments (String, String)" more than a year ago but it doesn't have any answer and I have the same problem just now.
Unfortunately I didn't find anything more on Google.
import com.jcraft.jsch.*;
import java.io.*;
import java.util.Properties
JSch jsch = new JSch();
String user = "myUserId";
String host = "myHost";
Session session = jsch.getSession(user, host, 22);
session.setConfig("StrictHostKeyChecking", "no");
My code is as simple as that and I have the following message:
The method setConfig(Properties) in the type Session is not applicable for the arguments (String, String).
So I tried another way to do the same thing, but it's not normal that it doesn't work. Does anyone know where is the problem ?