If the authentication phase is complete, true
will be returned. If the server does not accept the request (or if further authentication steps are needed), false
is returned and one can retry either by using this or any other authentication method (use the getRemainingAuthMethods
method to get a list of the remaining possible methods).
Note: if this method fails, then please double-check that it is actually offered by the server (use {@link #getRemainingAuthMethods(String) getRemainingAuthMethods()}.
Often, password authentication is disabled, but users are not aware of it. Many servers only offer "publickey" and "keyboard-interactive". However, even though "keyboard-interactive" *feels* like password authentication (e.g., when using the putty or openssh clients) it is *not* the same mechanism. @param user @param password @return if the connection is now authenticated. @throws IOException
If the authentication phase is complete, true
will be returned. If the server does not accept the request (or if further authentication steps are needed), false
is returned and one can retry either by using this or any other authentication method (use the getRemainingAuthMethods
method to get a list of the remaining possible methods).
Note: if this method fails, then please double-check that it is actually offered by the server (use {@link #getRemainingAuthMethods(String) getRemainingAuthMethods()}.
Often, password authentication is disabled, but users are not aware of it. Many servers only offer "publickey" and "keyboard-interactive". However, even though "keyboard-interactive" *feels* like password authentication (e.g., when using the putty or openssh clients) it is *not* the same mechanism. @param user @param password @return if the connection is now authenticated. @throws IOException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|