mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 00:20:45 +00:00
When servers require multi-step authentication (e.g., password + MFA, or publickey + keyboard-interactive), the previous implementation did not properly handle the partialSuccess flag from ssh2's authHandler callback. This caused MFA-only servers to fail connection because keyboard-interactive was not triggered after the initial auth method succeeded with partialSuccess. Changes: - Add partialSuccess handling to try server-requested auth methods - Track attempted methods to avoid re-trying failed or already-used methods - Cache the first successful method (not the last) for multi-step flows to ensure correct auth order on subsequent connections Co-Authored-By: Claude <noreply@anthropic.com>