Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String host = "xxx";
- String user = "xxx";
- String password;
- Scanner scanner = new Scanner (System.in);
- System.out.println("Enter rsa token: ");
- password = scanner.nextLine();
- Session session = jsch.getSession(user, host, 2222);
- session.setPassword(password);
- session.connect();
- java.util.Properties config = new java.util.Properties();
- config.put("StrictHostKeyChecking", "no");
- session.setConfig(config);
- com.jcraft.jsch.JSchException: Auth cancel
Add Comment
Please, Sign In to add comment