Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. String host="hostname";
  2. String user="usename";
  3. String password="password";
  4. String command="ksh samplePass";
  5. Properties config = new Properties();
  6. config.put("StrictHostKeyChecking", "no");
  7. session.setPassword(password);
  8. session.setConfig(config);
  9. session.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement