In the following code
JSch jsch = new JSch(); Session session = jsch.getSession(user, host, 22); session.setPassword(password)