setConfig(Properties) in the type Session is not applicable for the arguments (String, String)”
问题 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);