if (!this.sessions.containsKey(shellId)) {
Session session = ssh.getSession(user, host, port);
session.setPassword(password.getPassword());
session.setConfig("StrictHostKeyChecking", "no");
session.connect(timeout);
this.sessions.put(shellId, new SecureShellSession(this, shellId, session, password, timeout));
} else {
if (!ByteUtil.equals(this.sessions.get(shellId).password.getPassword(), password.getPassword()))
throw new IllegalArgumentException("Invalid password");