title: setConfig(Properties) in the type Session is not applicable for the arguments (String, String)”
body: <p>This question has already been asked here: <a href="https://stackoverflow.com/q/34239833/7812989">&quot;The method setConfig(Properties) in the type Session is not applicable for the arguments (String, String)&quot;</a>
  more than a year ago but it doesn't have any answer and I have the same problem just now. </p>
  
  <p>Unfortunately I didn't find anything more on Google.</p>
  
  <pre><code>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");
  </code></pre>
  
  <p>My code is as simple as that and I have the following message: </p>
  
  <blockquote>
    <p>The method setConfig(Properties) in the type Session is not
    applicable for the arguments (String, String).</p>
  </blockquote>
  
  <p>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 ? </p>