I know the question is short, but I have never done this before, on SP2013 on premises.
I need to configure FBA with 2 factor auth, can anyone guide me in the right direction.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
There is a bunch of
addIdentity methods in the JSch class, which can be used to provide a key pair for public key authentication, and there is a
setPassword method in the Session class.
I would simply use both and try to connect to the server.
The SSH protocol is made such that the server presents a set of authentication options in each step, and the client then selects of those one that it supports, and if I remember the code right, JSch simply does this.
Please report back if this actually worked, I didn't try it.