Displaying 1 result from an estimated 1 matches for "checkauth".
Did you mean:
check_auth
2013 May 08
2
[Bug 2099] New: SshClient.connect() failure on port 22
...gurationLoader");
sfc = new SshClient();
sfc.connect(serverIp, serverPort);
System.out.println("sfc.connect");
PasswordAuthenticationClient pwd = new
PasswordAuthenticationClient();
pwd.setUsername(userId);
pwd.setPassword(password);
int checkAuth = sfc.authenticate(pwd);
System.out.println("checkAuth " + checkAuth);
if (checkAuth == 4) {
System.out.println("AuthenticationProtocolState.COMPLETE");
SftpClient sftp = sfc.openSftpClient();
sftp.quit();
sfc.disconnect();
}...