Hi Team,
We are using apache mina sftp library to implement sftp server.
We need your help in understanding how we can support DUAL Authentication(both
public key and password).
I noticed,
public interface ServerAuthenticationManager has
/**
* This key is used when configuring multi-step authentications. The value
needs to be a blank separated list of
* comma separated list of authentication method names. For example, an
argument of
* <code>publickey,password publickey,keyboard-interactive</code> would
require the user to complete public key
* authentication, followed by either password or keyboard interactive
authentication. Only methods that are next in
* one or more lists are offered at each stage, so for this example, it
would not be possible to attempt password or
* keyboard-interactive authentication before public key.
*/
String AUTH_METHODS = "auth-methods";
But I couldn’t find the right place to set this.
We need to set this flag on user to user basis.
Appreciate your help very much.
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.