Closed pdlan closed 4 years ago
@pdlan How could this be tested?
You could configure your sshd in this way to test.
I don't think a do .. while
loop is a good idea, a misconfigured server can cause an infinite loop. Maybe put in a limit of 5-10 retries?
Now the max retry times are limited to 5. Is that OK?
Thanks for the contribution, @pdlan!
To support multi-step authentication (e.g. need to provide both public key and password to login), continue to try to authenticate when the result is SSH_AUTH_PARTIAL.